Re: [R-sig-Geo] how to plot different rows of a SpatialPolygonsDataFrame in trellis panels

2018-06-01 Thread Roger Bivand
On Fri, 1 Jun 2018, Edzer Pebesma wrote: On 06/01/2018 05:38 AM, Waichler, Scott R wrote: Kent, Thank you for your response to my problem. Unfortunately, I can't use sf because it has system dependencies I can't meet. I am using RHEL 6, and am up-to-date with it for gdal, geos, and proj

Re: [R-sig-Geo] how to plot different rows of a SpatialPolygonsDataFrame in trellis panels

2018-06-01 Thread Edzer Pebesma
On 06/01/2018 05:38 AM, Waichler, Scott R wrote: > Kent, > > Thank you for your response to my problem. Unfortunately, I can't use sf > because it has system dependencies I can't meet. I am using RHEL 6, and am > up-to-date with it for gdal, geos, and proj (versions 1.7.3, 3.3.2, 4.7.0 >

Re: [R-sig-Geo] how to plot different rows of a SpatialPolygonsDataFrame in trellis panels

2018-05-31 Thread Waichler, Scott R
Kent, Thank you for your response to my problem. Unfortunately, I can't use sf because it has system dependencies I can't meet. I am using RHEL 6, and am up-to-date with it for gdal, geos, and proj (versions 1.7.3, 3.3.2, 4.7.0 respectively), but the R package sf requires later versions for

Re: [R-sig-Geo] how to plot different rows of a SpatialPolygonsDataFrame in trellis panels

2018-05-24 Thread Kent Johnson
On Thu, May 24, 2018 at 6:00 AM, wrote: > > Message: 1 > Date: Wed, 23 May 2018 18:39:07 + > From: "Waichler, Scott R" > To: "r-sig-geo@r-project.org" > Subject: [R-sig-Geo] how to plot different rows of a >

Re: [R-sig-Geo] how to plot different rows of a SpatialPolygonsDataFrame in trellis panels

2018-05-23 Thread Bede-Fazekas Ákos
Dear Scott, use spplot(tmp, zcol="z") instead of spplot(tmp, zcol=z) to display the column "z". Use spplot(tmp[tmp$id == 1, ], zcol = "z") to display only those grids that has id 1. And to display two panels: tmp$z1 <- tmp$z2 <- tmp$z tmp$z1[tmp$id == 1] <-  NA tmp$z2[tmp$id == 2] <-  NA

Re: [R-sig-Geo] how to plot different rows of a SpatialPolygonsDataFrame in trellis panels

2018-05-23 Thread Roger Bivand
Scott, Without having tried your code, how similar is this to these packages: https://cran.r-project.org/package=micromap https://cran.r-project.org/package=micromapST and their JSS papers: https://www.jstatsoft.org/index.php/jss/article/view/v063i02

[R-sig-Geo] how to plot different rows of a SpatialPolygonsDataFrame in trellis panels

2018-05-23 Thread Waichler, Scott R
Hello, I have a SpatialPolygonsDataFrame. I would like to do a trellis plot on one of the attributes, so that in the panel for a given attribute value, only those polygons with that value are plotted. So, each panel has different polygons plotted in it. I can't figure out how to do this.