[R] Manipulating contour plots
ray at mcs.vuw.ac.nz
Wed Dec 1 21:06:42 CET 2004
From: Caroline Houldcroft <c.j.houldcroft at swansea.ac.uk>
Date: 01 Dec 2004 15:16:55 +0000
> I would like to create a filled.contour plot with colour bar and overlay
> a map.
> I need to create several of these representing variables with different
> spatial extents for comparison. When I try to fix the plot area size and
> axes limits as follows:
> my definitions were ignored producing a stretched image of the area with
> limits defined by the contour plot.
I cannot answer this part of the question because your example is not
reproducible (Error in nrow(oct94) : Object "oct94" not found) [and the
first line contains a syntax error.]
> I have also had difficulties overlaying a map on the same axes. The
> following example, taken from the r-help archives, gave the error
> "couldn't find function "world""
The world() function is not part of the maps package, it is in the
fields package. If you want to use the maps package, try:
map("world", ylim=c(5,30), xlim=c(-30, 50), add=T)
Hope this helps,
More information about the R-help