[R] Contour - data points not in ascending order?

From: Kirkeby <ckir_at_vet.dtu.dk>
Date: Tue, 29 Jun 2010 01:52:44 -0700 (PDT)

Hello everyone.

I have been dealing with this for a while. I have built a spatial prediction model for densities of mosquitoes on a field, based om empirical data. I need to plot the field area with the predicted densities in a heatmap, contour or likewise, and compare it visually with i.e. a loess prediction (which works well). But no matter what I do, I cannot come across the problem that the x and y values should be in ascending order. Why is this necessary? I have tried using the unique() function as mentioned earlier, but it only removes some data points.
Please help me, I will appreciate any advice.

Best regards
Carsten Kirkeby

-- 
View this message in context: http://r.789695.n4.nabble.com/Contour-data-points-not-in-ascending-order-tp2271903p2271903.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 29 Jun 2010 - 08:57:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 29 Jun 2010 - 09:10:44 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive