Skip to content
Prev 200020 / 398506 Next

Odp: How can I get contour plot on this data?

Hi

here is what help says

x,y
locations of grid lines at which the values in z are measured. These must 
be in ascending order. By default, equally spaced values from 0 to 1 are 
used. If x is a list, its components x$x and x$y are used for x and y, 
respectively. If the list has component z this is used for z.
z
a matrix containing the values to be plotted (NAs are allowed). Note that 
x can be used instead of z for convenience.

***your z is not a matrix***

you can try to get a structure for contour from ?interp in akima package.

Or again from help page of contour

Alternatively, use contourplot from the lattice package where the formula 
notation allows to use vectors x,y,z of the same length. 

besides I am not sure if contour can handle Date variable.

Best regards
Petr



r-help-bounces at r-project.org napsal dne 12.11.2009 14:40:48:
http://www.R-project.org/posting-guide.html