例如:
require(ggplot2)
require(reshape2)
volcano3d <- melt(volcano)
names(volcano3d) <- c("x", "y", "z")
v <- ggplot(volcano3d, aes(x, y, z = z))
v1 = v + stat_contour(aes(colour=..level..,size=..level..))
侧边栏上有两个图例,我能删除其中一个吗?
v1 = v + stat_contour(aes(colour=..level..,size=..level..)) +
scale_colour_continuous(guide=FALSE)
scale_size_continuous
关闭大小图例。