Re: [R-sig-Geo] plot shape file using lattice xyplot

2009-12-17 Thread Roger Bivand
On Wed, 16 Dec 2009, Zia Ahmed wrote: Thanks Andrews. It works fine. Nothing wrong with sp plot. I need to plot boundary around of sampling locations. R-script I have written, I used xyplot and levelplot. This look like a two-step question, assuming that you need a line representation of p

Re: [R-sig-Geo] plot shape file using lattice xyplot

2009-12-16 Thread Roger Bivand
On Wed, 16 Dec 2009, Zia Ahmed wrote: Hi, I am trying to plot a shape file in R. I can do it easily using plot or spplot function. But I want plot this map with lattice xyplot function. Any one has any idea? I do not want use "maps" package. Help will be appreciated... Thanks Zia lib

Re: [R-sig-Geo] plot shape file using lattice xyplot

2009-12-16 Thread Zia Ahmed
Thanks Andrews. It works fine. Nothing wrong with sp plot. I need to plot boundary around of sampling locations. R-script I have written, I used xyplot and levelplot. Thanks again Zia Felix Andrews wrote: What's wrong with using spplot? It is based on xyplot anyway. If you want to use xy

Re: [R-sig-Geo] plot shape file using lattice xyplot

2009-12-16 Thread Pete Larson
Hello all, I have a data frame with lat and lon coordinates for some sample areas (not a grid) . I was to create an nb object that I can use with spdep but am unsure as to how to convert it. Does anybody have any ideas? Thanks, Pete ___ R-sig-

Re: [R-sig-Geo] plot shape file using lattice xyplot

2009-12-16 Thread Felix Andrews
What's wrong with using spplot? It is based on xyplot anyway. If you want to use xyplot, you can use the panel function that sp defines: sp.polygons(shp) You can read in the shapefile with the RGDAL package: shp <- readOGR(...) 2009/12/17 Zia Ahmed : > Hi, > > I am trying to plot a shape file  

[R-sig-Geo] plot shape file using lattice xyplot

2009-12-16 Thread Zia Ahmed
Hi, I am trying to plot a shape file in R. I can do it easily using plot or spplot function. But I want plot this map with lattice xyplot function. Any one has any idea? I do not want use "maps" package. Help will be appreciated... Thanks Zia library(maptools) library(lattice) bound<-r