[R-sig-Geo] a question on lattice contourplots
Giuseppe Calamita
calamita_giuseppe at yahoo.it
Mon Jul 30 15:12:22 CEST 2012
Martin Ivanov wrote
>
> ....
> As an alternative, is it possible to fill the regions between the
> contour lines in the following plot:
> levelplot(volcano, at=heights, col.regions=terrain.colors(6),
> contour=TRUE, region=FALSE)
> without plotting the contourlines themselves?
> ...
>
well, regarding your last question , you just have to change the parameters
of levelplot() function: if you read them, they "speak" clearly ;) : if you
don0t want contourlines switch contour parameter to False, and if you want
your regions to be coloured switch the region parameter to T
try
levelplot(volcano, at=heights, col.regions=terrain.colors(6), contour=F,
region= T)
this should work,
-----
Giusepep Calamita
PhD italian National Council of Research - Institute of Methodologies for Environmental Research CNR - IMAA
85050 Tito Scalo - Potenza - Italy
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/a-question-on-lattice-contourplots-tp7580626p7580633.html
Sent from the R-sig-geo mailing list archive at Nabble.com.
More information about the R-sig-Geo
mailing list