R: ggplot2: facet_wrap() [統計]
facet_wrap()でグラフの分割。
library(ggplot2) data(Titanic) titanic.m <- melt(Titanic) p <- ggplot(titanic.m, aes(x = Survived, y = value, fill = Class)) + geom_bar() + facet_wrap(Sex ~ Age)
コメント 0