Hi,
sample_real <- sample[, c(2,4)]
writeOGR(sample_real, ".", "sample_real", driver="ESRI Shapefile")
should do the job.
Kami
gianni lavaredo wrote:
sorry for the easy questions but I have this problem. I had read Help but I
didn't find this question. Sorry for desturbing but I am a brand n
arion TAFANI wrote:
> we want to calculate the minimun distance between polygons' edges , do
> you know any package or function which can help us ? we try to work
> with vectors rather than raster but we lack some tools. we only found
> how to calculate distances between centroids but nothin
Dear R-sig-Geo List Members,
How might I adjust a GE_SG object so that kmlOverlay() will produce a PNG
that extends beyond the outermost points in a SpatialPoints object? When
the outermost points are used to establish the extent of the grid, the
symbols marking the location of the outermost p
sorry for the easy questions but I have this problem. I had read Help but I
didn't find this question. Sorry for desturbing but I am a brand new in R,
sorry again
# I have a shape file with 4 column (soil, ID, country, pH)
sample <- readOGR(".", "sample")
summary("sample")
# I wish select only th
Hi Frauke,
in the RSAGA package there is a function pick.from.ascii.grid which does
exactly what you want. Even works with large grids as it can process
them row by row. I use it for extracting point data from stacks of
Landsat bands, terrain attributes etc.
Here a case study (landslide suscepti
Hi,
I gave the answer in my previous e-mail
library(sp)
data(meuse) # data.frame
# The columns with the x and y coordinates are called "x" and "y"
coordinates(meuse) = ~x+y # SpatialPointsDataFrame
A good source of additional information is the sp-documentation or the
book Applied Spatial Data
Dear Alina
First of all I suggest you search this mailing list, google, as well as
reading a little at http://r-spatial.sourceforge.net/
Especially the Graph gallery is useful with lots of examples. If you want to
advance, please look at http://www.asdar-book.org/
The answer to your question
My data consists of lat, long, and the number of customers associated with
each
How do I go about converting my data.frame to a spatial object?
On Tue, Mar 3, 2009 at 3:40 PM, Paul Hiemstra wrote:
> Hi,
>
> You have to provide some more info in order for us to answer you question.
> How does 'yo
Ok. Again I will not answer the question exactly the way you would like to
have things done. Anyway this is an approach to use lattice.
1. Use spsample to create a grid
2. Make a data.frame and give the corresponding data values from the shp-file
to the coordinates in the data frame
3. plot with
Dear list,
I have a soilmap as an Ascii grid and a dataframe with x and y coordinates
(these are sampling points). I would now like to extract values from the
soilmap to the dataframe based on location, the x and y values. Is there any
way to do this in R?
Cheers,
Frauke
_
Hi Noicola,
Thanks for the reply
Mine were originally made in ArcMap by a colleague of mine, then
imported into Grass, which I use. The point locations (x,y) and the
covariates are all in a vector attribute table for the points and all
values are pulled direclty from a sqlite backend via RS
Hi Ken,
I've also been using geoRglm for similar analyses, and found the prediction
to be a bit fickle when it comes to the prediction grids!
I was having similar problems to yours and the only thing that I could do to
make it work was to alter the way I made my prediction grids. How are you
c
Thanks for the detailed comments. Before you want me starting to
experiment with your data, I want to ask you what makes you think that
spplot will solve your problem, which I assume is plotting 3D polygons
(although I'm not sure)?
Some more comments inline.
--
Edzer
Jim Burke wrote:
> Hi, I sti
Hi,
I am not sure about what you need, bu you may want to try Mondrian for
this:
http://rosuda.org/mondrian/
If you have your data in R (as a SpatialPolygonsDataFrame), you can use
sp2Mondrian to export to a file that Mondrian can read. This will let
you visualize multivariate data very easily.
14 matches
Mail list logo