Displaying 20 results from an estimated 20000 matches similar to: "SpatialPolygonsDataFrame to map conversion?"
2011 Jul 09
1
SpatialPolygonsDataFrame holes problem
I have obtained shapefiles for Indian states from here:
http://www.maptell.com/index.php?option=com_remository&Itemid=159&func=fileinfo&filecatid=115&parent=category
Problem: I want to extract centroid coordinates for each State, but there is some coding problem with the shapefiles that prevents this.
#Code:
#After extracting the shapefiles from the india_state.zip file, then:
2011 Jul 23
1
Problem with read.shape in maptools
Hi,
I'd like to read a shapefile into a Map object. This is exactly what
read.shape{maptools} is suppoed to do, according to the documentation I
found in the link below.
However, this doesn't seem to work
library(maptools)x <- read.shape(system.file("shapes/sids.shp",
package="maptools")[1])Error: could not find function "read.shape"
I haven't
2011 Apr 03
0
Plotting data on a US County Map
Hi,
I have a data frame listing US counties and a quantity ("number") per county
and I have a shapefile of the US with county ID's. I would like to plot the
"number" variable on a map (in the shapefile) using a color range per county
(e.g. white = min(number) = 2, black = max(number) = 15). Can anyone help me
actually plotting the data on the map? This is how far I got.
2010 Apr 08
0
khat and included polygons
Dear list,
I have a question regarding the included polygon in the khat function of the splancs library defining the area where points appear.
I have not only one simple polygon included, my map includes several islands.
I read my map which was a shape file by readShapeSpatial of the maptools library.
Then I split up the SpatialPolygonsDataFrame into the included polygons by
coor <- NULL
2009 Oct 28
2
Re ading and Creating Shape Files
Hello R Community,
I have imported a dataset which contain X Y coordinates and would like to
recreate a shape file after some data analysis. What i have done is to
import some taxlot data and join them based on some criteria. I want to
check to see how well the joining went by reviewing the results in GIS.
A couple things. I cant seem to import a shape file correctly using the
maptools
2008 Dec 04
2
Plotting a kriging on a map
Hi list,
Well, this time I’ve a doubt with mapping generation.
I was already able to read and plot shapefiles, plot point on this map. All
this without any problems, but now I want to do something that I think, only
Golden Software Surfer is capable of.
I would like to plot a kriging result on the existing map (map script
below). Well I looked for on the net, but I was not able to be sure of
2009 Mar 10
1
North Arrow (.png file) on a Map
Hi list.
I would like to know how do I insert a North arrow, stored as a png file in
my computer, in a map? I found lots of post asking similar things, one of
them mentioned the pixmap package. The map was done using map() and
shapefiles (the code is below). I’m using the pixmap () and addlogo()
functions. Well I can import the png with pixmap() function (I guess, once
there’s no error message),
2012 Jul 20
1
Dissolve polygon
Hi,
I am working with a SpatialPolygonsDataFrame of many islands. There are a
lot of polygons (islands) composing my SpatialPolygonsDataFrame.
I want to extract the elevation of each island.
I need to separate the different polygons (like dissolve function in
arcgis), to have the elevation of each island.
Do you have any idea how can I do that ?
I already read a lot of forum, and read the
2014 Oct 08
2
Pregunta sobre manipulación de shapefile
Oscar, al final no he podido esperar hasta mañana
Con:
library(maptools)library(sp)
poligonos <- readShapeLines("C:\\...\\DATOS\\MUNICIPIO.shp")
sink("C:\\ ... \\DATOS\\MUNICIPIO.csv")
coordinates(poligonos)
Consigo un fichero con la suficiente estructura para tratarlo fácilmente y de una tacada montar la tabla .csv tal y como he indicado en un correo anterior
Necesito el
2007 Sep 17
1
map issues
Hi !
I have a shapefile that I can easily read into R using library(maptools). My problem stems from some warning messages that come even though everything seems to work fine.
library(maptools)
districts <- read.shape(filen = "a_ds", dbf.data = TRUE)
length(districts$Shapes)
so far so good. when I try and plot this I get a nice plot and a warning message:
> plot(districts)
2011 Jan 01
2
Problem with uploading library
Hello.
I'm new on that forum, so I would use some help... I'm programing with R
program, have some exercise to do.
So here it goes.
1. I have to upload two libraryes "sp" and "maptools"
2. This command is troubling me : towns <- readShapeSpatial("OB/OB.shp")
3. When I'm pressing f5, there is an error called: Error: could not find
function
2017 Jun 07
1
Errors running spdplyr example
Dear All,
When I tried to run the following code (taken from the *spdplyr* package
vignettes):
library(spdplyr)
library(maptools)
data(wrld_simpl)
worldcorner <- wrld_simpl %>%
mutate(lon = coordinates(wrld_simpl)[,1], lat =
coordinates(wrld_simpl)[,2]) %>%
filter(lat < -20, lon > 60) %>%
dplyr::select(NAME)
I got the following error messages:
Error in (function (cl,
2009 Nov 06
4
map of a country and its different geographical levels
Hi R users
I need the map of France?s ? communes ? (towns) to build a map
Is there a way to get it?
More generally:
How to do to get the map of a country and its different geographical levels?
Best regards
--
View this message in context: http://old.nabble.com/map-of-a-country-and-its-different-geographical-levels-tp26225645p26225645.html
Sent from the R help mailing list archive at
2012 Apr 01
4
map and shapefile help
Hi,
I want to use map("state") and have the ecoregion shape (please see link)
file projected onto this.
ftp://ftp.epa.gov/wed/ecoregions/cec_na/NA_CEC_Eco_Level3.zip
ftp://ftp.epa.gov/wed/ecoregions/cec_na/NA_CEC_Eco_Level3.zip
Could someone please show me how; I have never messed with this sort of
thing.
Thanks.
--
View this message in context:
2010 Jan 21
0
sp package - How to join two or more polygons from a SpatialPolygonsDataFrames
I have a SpatialPolygonsDataFrame object (sp package).
It contains 40 polygons.
Now I want to join some of the polygones.
I cannot figure out how to do that? Any ideas?
The code below produces a map of Germany and I need to join some
counties.
library(sp)
library(RColorBrewer)
# get spatial data for Germany on county level
con <- url("http://gadm.org/data/rda/DEU_adm3.RData")
2011 Jul 28
3
smooth scatterplot and geo map
Hello everybody,
I'm trying to understand how to draw a smoothed scatterplot on a geographic
map with R.
Have a dataframe with point locations (long, lat) and was able to simply
plot these points on a shp map by using the maptools package. However,
instead of having simply the raw points on the map, I would like to have a
"smoothed" scatterplot of the same superimposed on the map.
2006 Dec 30
1
plot methods in sp
Dear listers,
I am working since a while with the sp package and still wonder how the
plot methods are managed with sp spatial objects. For instance,
SpatialPolygonsDataFrame objects have obviously a plot method. However
it cannot be found in the list provided by methods(plot) . Furthermore
?plot.SpatialPolygonsDataFrame, nor ?plot.SpatialPolygons, etc.. provide
a help, though the lattice
2005 Sep 07
0
Revised versions of the maptools and sp packages
Revised versions of maptools, a package for reading geographical data from
shapefiles, and sp, a package with classes and methods for spatial data
handling, have been released on CRAN. They are maptools release 0.5-1 and
sp release 0.8-1.
The maptools package now depends on sp (>= 0.8), so that users of maptools
will need both to update the package itself, and to install the sp
package. All
2005 Sep 07
0
Revised versions of the maptools and sp packages
Revised versions of maptools, a package for reading geographical data from
shapefiles, and sp, a package with classes and methods for spatial data
handling, have been released on CRAN. They are maptools release 0.5-1 and
sp release 0.8-1.
The maptools package now depends on sp (>= 0.8), so that users of maptools
will need both to update the package itself, and to install the sp
package. All
2008 Feb 04
1
how to get points from SpatialPolygonsDataFrame
Um texto embutido e sem conjunto de caracteres especificado associado...
Nome: n?o dispon?vel
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20080203/5ea1e3ad/attachment.pl