See if this helps. data(cells) cells.density <- density(cells) par(mfrow = c(1, 2)) image(as.matrix(cells.density), asp = 1, bty = "n", axes = FALSE) plot(cells.density, main = "")
Notice that the image is transposed. As far as rotating goes, I would try converting this into a raster object and use the plethora of functions provided with the same name package. Cheers, Roman On Tue, Oct 9, 2012 at 12:16 PM, Julia Chacon Labella <[email protected] > wrote: > Just a short and simple question, > > How can I extract the values of an image created with "density.ppp" > function? > > And...there is any way to rotate this images? I tried with rotate() but I > guess this is only for the ppp object, not for an image. > > Thank you! > > > Julia Chacon Labella [PhD student] > > Ãrea de Biodiversidad y Conservación > > Escuela Superior de Ciencias Experimentales y TecnologÃa > > Universidad Rey Juan Carlos > > c/ Tulipán, s/n. > > E-28933 Móstoles (Madrid) > > España > > [[alternative HTML version deleted]] > > > _______________________________________________ > R-sig-Geo mailing list > [email protected] > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > > -- In God we trust, all others bring data. [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-geo
