11
我覺得這個變量有點混亂,例如,從文檔:..level ..在GGPLOT2等值線圖
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..))
爲什麼我不能用這個:
v2 = v + stat_contour(aes(colour=as.factor(z),size=as.factor(z)))