본문 바로가기
6. 데이터 시각화 - ggplot2/공통

[R ggplot2] 축 눈금 레이블 크기, bold 설정 (x축, y축)

by makhimh 2022. 5. 31.
반응형

x축 기준으로 설명하겠습니다. 축 눈금 레이블의 크기, bold를 설정할 때는 theme 함수 안에 axis.text.x 옵션을 사용합니다. 

아래와 같이 사용합니다. 

 

ggplot()+
  geom_boxplot(data=iris, aes(x=Species,y=Sepal.Length))+
  theme(axis.text.x = element_text(size=20,face='bold'))

 

반응형

댓글