8.4 カスタマイズされたレイヤーの構築
サンプルコード
myplot <- ggplot() attributes(myplot)
myplot
myplot <- ggplot(cars04, aes(x=Horsepower, y=Dealer.Cost, colour=factor(Number.of.Cylinders))) myplot + geom_point()
myplot + geom_path() myplot + geom_smooth()
ggplot(cars04, aes(x=Horsepower)) + geom_histogram(aes(y=..density..), fill="skyblue") + geom_density()
ggplot(cars04, aes(x=Horsepower)) + stat_bin()
- 最終更新:2013-05-23 17:00:30