반응형 reorder columns1 (R) Reorder columns in any orders / scale_x_discrete() scale_x_discrete() >library(ggplot2) ------------for 'airquality' data >library(dplyr)> summary(airquality$Ozone) Min. 1st Qu. Median Mean 3rd Qu. Max. NA's 1.00 18.00 31.50 42.13 63.25 168.00 37 > summary(airquality$Temp) Min. 1st Qu. Median Mean 3rd Qu. Max. 56.00 72.00 79.00 77.88 85.00 97.00 > airquality_%filter(!is.na(Ozone))%>%mutate(Ozone_rank=ifelse(Ozone Ozone_temp%group_by(Ozone_rank)%.. 2020. 7. 30. 이전 1 다음 반응형