I want to plot this figure created with filled.contour(), but in ggplot2, how do I do this?
I want to use ggplot2 because the graphing conventions are easier. The r
I took the example from the ggplot2 website.
# Generate data
library(reshape2) # for melt
volcano3d <- melt(volcano)
names(volcano3d) <- c("x", "y", "z")
# Basic plot
v <- ggplot(volcano3d, aes(x, y, z = z)) +
stat_contour(geom="polygon", aes(fill=..level..))
Where x and y are your Long and Lat and z is d13C