Professional Documents
Culture Documents
ggplot(data=mtcars) +
ggplot(data=mtcars) +
#position_dodge()함수
geom_bar()
geom_bar(position=position_dodge(0.1))
#position_fill()함수
geom_bar(position="fill")
geom_bar()
#position_identity()함수
ggplot(data=mtcars) +
ggplot(data=mtcars) +
geom_bar(mapping=aes(x=cyl, fill=as.factor(am)))
#패시팅(facetting)
#1.그리드(grid)형과 2.래핑(wrapped)형
geom_point() +
facet_wrap(~class)
?tips
head(tips, n=10)
View(tips)
geom_point(shape=1) +
facet_wrap(~day, ncol=2)
geom_point() +
facet_wrap(~class, nrow=4)
geom_point() +
facet_wrap(~drv)
geom_point() +
facet_wrap(~drv + year)