Well-documented visualization using geom_histogram(), facet(), geom_density(),
geom_boxplot(), geom_bin2d() and much more. Let me know if anything is required. Ping me @ google #bobrupakroy
Data visualization with multiple groups using ggplot2
1. Data Visualization - III
By using geom_histogram(), facet(), geom_density(),
geom_boxplot(), geom_bin2d()
Rupak Roy
2. >h<-ggplot(mt_cars,aes(x=mpg))
#differentiate the distribution ‘mpg’ based on ‘cyl’
>h+geom_histogram(aes(fill=cyl),
position = "dodge") #position =‘dodge’ is optional
#plotting multiple groups using facet
>h+geom_histogram(aes(fill=cyl))+facet_grid(cyl~.)
>h+geom_histogram(aes(fill=cyl))+facet_grid(.~gear)
>h+geom_histogram(aes(fill=cyl))+facet_grid(cyl~gear)
ggplot::geom_histogram()
6. Next:
We will use a small case study to understand the data by
using the visualization methods that we have learned so
far.
Data Visualization - III
Rupak Roy