[R] how to make a contour plot using data in long format

From: Maria Wang <mariayzw_at_hotmail.com>
Date: Fri 14 Jul 2006 - 00:25:59 EST

Hi List,

There is a dataset with Latitude Longitude information and corresponding value shaped like this:

Lati                     Longi                  Value
18.0001             -159.6667             123
18.0023             -159.6665             124
19.1001             -158.2988             125
...                      ...                        ...

I want to use this data to make a filled contour map imposed on an USA map. I notice filled.contour command can be used to make contour plots, but it requires the data in a matrix. Would someone please tell me if filled.contour is the right thing to look at, if so, how to reshape the data into a matrix since my Latitude and Longitude are not evenly distributed?


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jul 14 00:39:26 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 14 Jul 2006 - 18:14:07 EST.

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