반응형 geom_bar()1 (R) geom_col() VS geom_bar() This posting is about the difference between geom_col() and geom_bar() which look similar. geom_col() geom_bar() need both x-axis and y-axis designated only need x-axis or y-axis designated need summary about x and y only need raw material > library(ggplot2)> library(dplyr)> mpg2%group_by(manufacturer)%>%summarise(mean_hwy=mean(hwy)) # make summarise > ggplot(data=mpg2,aes(x=manufacturer,y=mean_.. 2020. 7. 20. 이전 1 다음 반응형