Displaying 20 results from an estimated 300 matches similar to: "maptools, write.polylistShape"
2006 Oct 07
3
merge and polylist
Greetings:
I would like to kindly ask for a little help. The rough code is:
#________________________________________________________
dat=data.frame(read.delim(file="all.txt", header = TRUE, sep = "\t",
quote="\"", dec=".",na.strings = "NA"))
nc=read.shape("astae.shp", dbf.data=TRUE, verbose=TRUE)
mappolys=Map2poly(nc)
submap
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
2008 Jul 08
2
attributing values to dataframe positions following eval
Hi everybody,
I've been looking around, but can't seem to find the answer.
I get a list of names (which vary, so I never know them in advance), and
transform them into variables, each of which is a dataframe, using
assign:
polyList <- c("rs123", "rs124", "rs555", "rs000")
numPoly <- length(polyList)
for (k in 1:numPoly) {
2008 Jun 29
2
How to get an argument dynamically from a list?
Hi,
I'd like to get an argument (I think it's the right term) dynamically from a list, but cannot manage to do it.
Here is the code I use:
#output given by database
BOB <- c('A/A', 'C/C', '15/27')
MARY <- c('A/A', NA, '13/12')
JOHN <- c('A/A', 'C/A', '154/35')
CLIFF <- c('A/C', 'C/C',
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)
2008 Jun 29
1
creating a dataframe using a list of the variable names
Hello,
I'm fairly new to R, and despite spending quite some time exploring, testing, and looking for answers, I still have a couple of questions remaining...
The first one is about creating a dataframe using a list of the variable names .
I get this output file from a database:
BOB <- c('A/A', 'C/C', '15/27')
MARY <- c('A/A', NA, '13/12')
JOHN
2004 Nov 22
1
plot.Map Maptools
Hi,
Is there any way to plot a Map with different shading patterns, instead
of color intensity, in R2.0.1 over Linux ?
Thanks.
D
-----------------------------------------
Stay ahead of the information curve.
Receive GIS news and jobs on your desktop daily.
Subscribe today to the GIS CafeNews newsletter.
[ http://www10.giscafe.com/nl/newsletter_subscribe.php ]
It's informative and
2013 Jan 04
1
SpatialPolygon with the max value gets no color assigned in spplot function when using "at" parameter
Hi,
I would like to do coloring of map regions based on the region values
"weight". The approach I am taking is first to break regions into equal
intervals,
classIntervals(spdf$weight,4)$brks #4 intervals in this case
and coloring all regions within the interval with the same color
col = brewer.pal(4,"RdYlGn"))
The max "weight" is as well the boundary of the
2004 Apr 05
1
Drawing maps in R?
What tools and documentation exist for producing maps and working
with polygon and polylist objects in R beyond the following:
* Packages maps, mapproj, maptools, and mapdata.
* Becker and Wilks (1993, 1995), listed as references in the
documentation on the "map" function.
Thanks,
Spencer Graves
2012 Sep 24
2
Latitude Longitude to SPDF
Hi Team,
Need your guidance in building SPDF objects from Latitude, Longitude
Information available.
I am using package "plotGoogleMaps" which is really awesome but it requires
SPDF objects to build the maps.
I have a data frame which have Latitude and Longitude information and
wanted to convert it in SPDF for making maps.
Please help me to find suitable package or function to convert
2012 Aug 13
1
Fine Tuning Country Map
Dear All,
Please see the short script at the end of the email, which I assembled
looking for bits and pieces on the web.
It essentially does what I need: it plots several countries as a
color-coded map.
I just would like to fine-tune a bit the final image, in particular
(1) Select my own colors for "painting" the countries (i.e. associate
manually a color to every level)
(2) Be
2012 Apr 23
2
automating a script to read a file
Hi,
The following script (which I did not develop) is used to calculate and
plot a skewed normal curve. The script currently requires the user to
input six parameters, rather than reading these directly from a file.
I've been spinning wheels here, trying to figure out how to modify the
script to automate it. I have four data sets, each in excess of 300
records that I need to process.
My
2005 Feb 09
1
FW: Drawing maps of UK
Hi Guys
Thanks for this! As I am a beginner, I bet I'm running into some really
basic problems. Using the example from the Map2poly function in
maptools:
try <- read.shape("euadmll.shp")
mappolys <- Map2poly(try)
# this produces 14 warnings() of the type:
# 1: level 2 circularity at 62 in: .mtlbuild(.mtafters(r1), rD) # etc #
14: From next release, default hole handling
2010 Mar 15
1
map2poly - map lat/long cannot be unconstrained?
Using the maptools function "map2poly" I have created a map/polylist object
- a map of the Great Lakes. My goal is to passively plot additional data on
this map. Unfortunately I am not able to change (distort) the relative scale
of the axes for the map, and so the sample points do not line up correctly
on the map.
In the code below, notice that I have set the same axis ranges on each
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.
2017 Jun 01
3
[spatstat] Convert shapefile to pixel image
Dear all,
I am currently working with the spatstat package, using windows and pixel images.
First:
My aim is to transform a shapefile (see attached) into a pixel image.
My idea is to start transforming the shapefile into a Spatial Polygon file:
x <- readShapeSpatial("200001441.shp")
y <- as(x, "SpatialPolygons")
z <- as.owin(y)
Given z, I want to identify each
2009 Feb 08
0
recursive derivative a list of polynomials
Dear list,
This is quite a specific question requiring the package orthopolynom.
This package provides a nice implementation of the Legendre
polynomials, however I need the associated Legendre polynomial which
can be readily expressed in terms of the mth order derivative of the
corresponding Legendre polynomial. (For the curious, I'm trying to
calculate spherical harmonics [*]).
2004 Sep 22
2
dot density maps
Dear All,
In the moment i'm using the map and maptools package to read shapefiles
and display the maps.
I'm looking for the possibility to draw points (randomly positioned or
positioned according to a grid) into the polygons instead of filling the
polygons with colors.
For example:
a map (shapefile) with 10 countries, 15 points in the polygon of country
A, 20 points in the
2003 Dec 01
1
Re: using shapefile as owin
My sincerest apologies, as this is a very elementary problem, but I have
searched through archives and FAQs and on the web, and I am at the end of my
own resources.
I need to do analysis of a spatial point process occuring with four
counties, using spatstat. I've had no trouble importing the shapefiles, but
I can't seem to figure out what I need to do in order to use the boundary as
an
2013 Mar 07
3
rbind a list of matrices
I have a large list of matrices and a vector that identifies the desired
matrices that I would like to rbind. However, I am stuck on how to get
this to work. I have written some code below to illustrate my problem:
# 3 simple matrices
a<-matrix(1:9,3,3)
b<-matrix(10:18,3,3)
c<-matrix(19:27,3,3)
#this is the type of list of matrices I am dealing with