[R-sig-Geo] Help with contour plots

Edzer Pebesma edzer.pebesma at uni-muenster.de
Sun May 15 19:59:51 CEST 2011



On 05/14/2011 04:55 PM, Cristina Silva wrote:
> Dear all,
> 
> I have a SpatialLinesDataFrame with bathymetric lines, built with:
> 
> cl <-
> ContourLines2SLDF(contourLines(as.image.SpatialGridDataFrame(prof.grid2["z"]),
> levels=c(50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 2000,
> 3000, 4000)))
> 
> This object has all the bathymetric lines. Is there any way to plot some
> of the lines using this object or do I have to build the SLDF with only
> the lines that I want to plot?

well, you can do it in a single pass, using selection; try:

plot(cl[1:3])


> 
> Regards,
> 
> Cristina
> 
> 

-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics      e.pebesma at wwu.de



More information about the R-sig-Geo mailing list