search for: spatiallinesdataframe

Displaying 10 results from an estimated 10 matches for "spatiallinesdataframe".

2010 Apr 16
0
generating a SpatialLinesDataFrame (rgdal)
Could somebody give me a pointer on how to generate a SpatialLinesDataFrame from a dataframe, that contains lat,long coordinates as separate variables. At the moment the data looks like this: lat long [1] 53.xxxx 1.xxxx where as the SpatialLinesDataFrame consists of Coordinates [1] (53.xxx, 1.xxx) This is probably a trival issue, but I'm a relat...
2007 Jul 10
2
Plot SpatialLinesDataFrame with xlim & ylim
I'm running windows xp, R 2.3.1 with maptools 0.6-6, I guess. When plotting from a large SpatialLinesDataFrame and using xlim & ylim to reduce the area, the plot axes automatically have the same scale size, even if xlim and ylim ranges differ. E.g.: tmp <- readShapeLines(filepath) plot(tmp,xlim=c(-126,-119),ylim=c(50,51)) The y-axis range is actually 47-54, same range as the x-axis. What am I doi...
2020 Oct 20
1
sp:gIntersection warning message about projection
...4 (build 17763) attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] CircStats_0.2-6 boot_1.3-25 MASS_7.3-53 stringr_1.4.0 [5] rgeos_0.5-5 maptools_1.0-2 rgdal_1.5-18 raster_3.3-13 [9] sp_1.4-4 So i am using 2 SpatialLinesDataFrame that are results of previous computation. I am not sure i can give a viable examples, but maybe this can be solved without. If not i will figure out how i can give you a workable example. Or if you know if there are in R already loaded 2 different line shapefiles with projection then i will see if...
2010 Nov 26
1
Generating kml lines output
Dear, I would like to generate kml file with lines (<LineString>) of different style (definitely color, but width would also be nice to see). However with kmlLine from maptools package I am able only to output the single first Lines object (first row of SpatialLinesDataFrame) I guess the option would be to have single Lines object (instead of list of them), but then also the style wouldn't vary among them... My code so far: library(maptools) library(sp) out <- structure(list(I = structure(c(1L, 7L, 3L, 4L, 5L, 1L, 2L, 9L, 6L, 3L, 10L, 8L), .Label...
2013 Oct 24
2
track on boats
Hi professors I'm finding the best package in R for manage a big database about vessels. I need to divided the travel of each boat into tracks. I have GPS points. I would join these points in a line on the map. I make that with the function "lines", but I can't divided by vessel or by track, I saw several packages, for tracking animals but they had specifically variables. And I
2006 Feb 23
0
adehabitat version 1.4
...class 'SpatialPolygonsDataFrame' and stores is into a data frame. 'traj2spdf' converts an object of class 'traj' into an object of class 'SpatialPointsDataFrame'. 'traj2sldf' converts an object of class 'traj' into an object of class 'SpatialLinesDataFrame'. - The function enfa() has been modified: The old components "co" and "l1" have been removed from objects of class "enfa", as they did not rely on solid mathematical theory. The old component "c1" is now named "co", and corresponds to...
2006 Feb 23
0
adehabitat version 1.4
...class 'SpatialPolygonsDataFrame' and stores is into a data frame. 'traj2spdf' converts an object of class 'traj' into an object of class 'SpatialPointsDataFrame'. 'traj2sldf' converts an object of class 'traj' into an object of class 'SpatialLinesDataFrame'. - The function enfa() has been modified: The old components "co" and "l1" have been removed from objects of class "enfa", as they did not rely on solid mathematical theory. The old component "c1" is now named "co", and corresponds to...
2007 May 21
1
Graphically show population density for a specific geographic area using R
Hi, we all know that R is powerful in dealing with graphics. I am now trying to use R to show some geographic attributes for a specific geographic area on a graph. For example, if I would like to generate a graph showing the population densities (in terms of the intensity of colors) for Illinois State by zip codes. I did some research; and it seems that package "maptools" is
2005 Oct 14
2
Beginner plot and map questions
Hi, I have not been able to find answers to these questions in the FAQs, manuals, or R-help archives. If answers are available somewhere, please direct me to them. 1.) Is there a way to convert a table (e.g. represented as a data frame) to a function, specifying which columns are input and which column is output? It would seem that this would be useful for plotting experimental results,
2009 Mar 21
3
Retrieving Vertices Coordinates from SpatialPolygons
Dear List, I'm trying to use different R packages for my Teaching Assistantship classes. And I cam out to an (apparently) very simple problem. I would like to retrieve the vertices coordinate of a SpatialPolygon data. I know this is stored in the "coords" slot, but I can't get access to it! I tried to coerce the SpatialPolygon into a data.frame but it doesn't work.