[R] contouring x y scatter data

David Winsemius dwinsemius at comcast.net
Tue Oct 18 00:10:48 CEST 2011


On Oct 17, 2011, at 5:59 PM, emorway wrote:

> Hi Carlos,
>
> Thanks for the response.  The plot you suggested was not in line  
> with what
> I'm trying to produce in R.  The last plot found at:
>
> http://www.advsofteng.com/gallery_contour.html
>
> is more along the lines of what I'm looking for.  Notice the scatter  
> points
> (shown by "x") are not laid out in a regular/gridded fashion, yet the
> plotting software was still able to use some kind of interpolation  
> and plot
> contours.  All the contouring options I'm finding in R require the  
> spatial
> locations of data points to be in a 'regular' grid.  That is, data  
> in each
> row must have the same y coordinate and data in each column must  
> have the
> same x coordinate.  I'm seeking flexibility in the location of the  
> points on
> which the contours are based.

See if this SO answer satisfies the problem requirements:

http://stackoverflow.com/questions/4228280/how-can-i-map-the-regular-dataset-using-coordinates-in-r/

>
> --
> View this message in context: http://r.789695.n4.nabble.com/contouring-x-y-scatter-data-tp3912828p3913544.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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list