[R-sig-Geo] Newbie Question...

Jason Rupert jasonkrupert at yahoo.com
Tue Jan 5 03:34:53 CET 2010


At the suggestion of Walmes Zeviani I downloaded and am taking a look at the sp package.

In an attempt to get going, can someone offer a suggestion about how to convert the below over to a version that uses the sp package? 

data(volcano)
x <- 10*(1:nrow(volcano))
y <- 10*(1:ncol(volcano))

image(x, y, volcano,col = terrain.colors(100),axes = FALSE)
contour(x, y, volcano, levels = seq(90, 200, by=5),add = TRUE, col ="peru")
axis(1, at = seq(100, 800, by = 100))
axis(2, at = seq(100, 600, by = 100))
box()
title(main = "Maunga Whau Volcano",font.main = 4)

Thanks for any feedback and insights.



More information about the R-sig-Geo mailing list