Skip to content

filled.contour and NA's

1 message · Hadley Wickham

#
You can also do this using ggplot, although you don't have quite as
much control over the appearance of the contours (you do get more
control over other things)

install.packages("ggplot", dep=T)
library(ggplot)

# Set up appropriate data structure
dimnames(ene) <- list(y, x)
names(dimnames(ene)) <- c("y", "x")
enem <- melt(ene)

p <- ggplot(na.omit(enem), aes=list(x=x, y=y, z=value, fill=value))
p <- ggtile(p)
p <- ggcontour(p)
scfillgradient(p)
scfillgradient(p, low="white", high="blue")

Regards,

Hadley