[R-sig-Geo] add legend to plot(spatialpolygonsdataframe)

2010-07-28 Thread Paulo Eduardo Cardoso
How can one compose a plot, adding legend, title, and axis titles to a plot of spatial object like a spatialpolygonsdataframe? Any comment will be appreciated Paulo ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch

Re: [R-sig-Geo] add legend to plot(spatialpolygonsdataframe)

2010-07-28 Thread Paulo Eduardo Cardoso
= Title for the x axis, ylab = Title for the y axis) legend(...) HTH, Roman On Wed, Jul 28, 2010 at 10:28 AM, Paulo Eduardo Cardoso paulo.mailing.l...@gmail.com wrote: How can one compose a plot, adding legend, title, and axis titles to a plot of spatial object like

Re: [R-sig-Geo] SpatialPointDataFrame to SpatialLinesDataFrame

2010-05-26 Thread Paulo Eduardo Cardoso
, Paulo Eduardo Cardoso wrote: Hi, How can one coerce spatial point to spatial line? I'm struggling to find a way of coerce a point SPDF object to Lines based in a ID [TARGET_ID] field. Any idea will be very welcome. Formal class 'SpatialPointsDataFrame' [package sp] with 5 slots   ..@ data

Re: [R-sig-Geo] SpatialPointDataFrame to SpatialLinesDataFrame

2010-05-26 Thread Paulo Eduardo Cardoso
? 2010/5/26 Paulo Eduardo Cardoso paulo.mailing.l...@gmail.com: Thanks! But by doing this ltraj - Lines(sapply(split(traj_subam[c(LONGITUDE,LATITUDE)], traj_subam$TARGET_ID), Line)) we get Slot ID: [1] NA We are not holding the [Target_ID] column as ID ? 2010/5/25 Edzer Pebesma

Re: [R-sig-Geo] SpatialPointDataFrame to SpatialLinesDataFrame

2010-05-26 Thread Paulo Eduardo Cardoso
(TARGET_ID = unique(traj_subam$TARGET_ID)), match.ID = T) neither with match.ID = T or F Paulo 2010/5/26 Paulo Eduardo Cardoso paulo.mailing.l...@gmail.com: When I try to coerce Lnes to SLDF with ltraj - Lines(sapply(split(traj_subam[c(LONGITUDE,LATITUDE)], traj_subam$TARGET_ID), Line)) ltraj

[R-sig-Geo] SpatialPointDataFrame to SpatialLinesDataFrame

2010-05-25 Thread Paulo Eduardo Cardoso
38.8 .. ..- attr(*, dimnames)=List of 2 .. .. ..$ : chr [1:2] LONGITUDE LATITUDE .. .. ..$ : chr [1:2] min max ..@ proj4string:Formal class 'CRS' [package sp] with 1 slots .. .. ..@ projargs: chr +init=epsg:4326 +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +towgs84=0,0,0 Paulo Eduardo

Re: [R-sig-Geo] plot polygons - transparent holes/island

2010-02-02 Thread Paulo Eduardo Cardoso
, wihout using in-out, is there a way to overlap areas[1,] keeping in points visible? Paulo 2010/2/2 Roger Bivand roger.biv...@nhh.no: On Mon, 1 Feb 2010, Paulo Eduardo Cardoso wrote: Hi, Code exemple library(maptools) load(file='D:\\R\\transparencia\\TransparentPolygon.Rdata') areas

Re: [R-sig-Geo] plot polygons - transparent holes/island

2010-02-01 Thread Paulo Eduardo Cardoso
plotter at first. Should I send a simple example? Please do, either code for a provided data set, or code and a link to the URL where the data set is available. Roger 2010/1/30 Roger Bivand roger.biv...@nhh.no On Sat, 30 Jan 2010, Paulo Eduardo Cardoso wrote:  I'd like to plot a SPDF

[R-sig-Geo] plot polygons - transparent holes/island

2010-01-30 Thread Paulo Eduardo Cardoso
I'd like to plot a SPDF with two objects, one of them buffering the other island. How can I set the island transparent? Similarly, keeping the outer polygon only, how can the hole still transparent? Thanks in advance, Paulo E. Cardoso [[alternative HTML version deleted]]

Re: [R-sig-Geo] plot polygons - transparent holes/island

2010-01-30 Thread Paulo Eduardo Cardoso
. Should I send a simple example? 2010/1/30 Roger Bivand roger.biv...@nhh.no On Sat, 30 Jan 2010, Paulo Eduardo Cardoso wrote: I'd like to plot a SPDF with two objects, one of them buffering the other island. How can I set the island transparent? Similarly, keeping the outer polygon only, how