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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.