R-ggplot No.1 2021-03-24 2024-03-07 R 눈금 표시 방법123456ggplot(PlantGrowth, aes(x = group, y = weight)) + geom_boxplot() + scale_y_continuous(limits = c(0, 10), # 축 범위 breaks = c(1, 3, 5, 7, 9), # 축의 숫자 지정 labels = c("1st", "three", "five", "seven", "nine")) 범주형 축 항목 순서 변경하기1234ggplot(PlantGrowth, aes(x = group, weight)) + geom_boxplot() + theme_bw() + scale_x_discrete(limits = c("trt1", "ctrl"))