반응형 list column1 (R) list colors of columns in order / character type to factor type list colors of columns in order. *character type to factor type* >library(ggplot2) >library(dplyr)> Ozone_temp_rate%count(Ozone_rank,temp_rank)%>%group_by(Ozone_rank)%>%mutate(per=n/sum(n)*100)> ggplot(data=Ozone_temp_rate,aes(x=Ozone_rank,y=per,fill=temp_rank))+geom_col()> class(Ozone_temp_rate$temp_rank) [1] "character"> levels(Ozone_temp_rate$temp_rank) ------------------no levels because the.. 2020. 7. 30. 이전 1 다음 반응형