[R] R shp(ESRI) point patterns and marks

Gary Nobles G.R.Nobles at rug.nl
Thu Oct 28 19:08:23 CEST 2010


I have a point dataset (ESRI shp file)
each point has an associated weight (grams)
These are the weights of animal bones recovered from an archaeological
excavation
I am trying to import the shp file and then do a density plot of the weight
data, so:

#Import shp file
library(spatstat)
library(maptools)
library(sp)

S <- readShapePoints("flint.shp")
SP <- as(S, "SpatialPoints")
P <- as(SP, "ppp")

So that brings in the shp file but I want to assign the marks(m) so I can do
something like:

plot(density(P, 10))

But based on the weights (grams (not spatial weighting))

Can anyone help?

Thanks

Gary
-- 
View this message in context: http://r.789695.n4.nabble.com/R-shp-ESRI-point-patterns-and-marks-tp3017683p3017683.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list