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

[ggplot2] x축과 y축 제목,눈금,라벨 제거

by makhimh 2023. 4. 6.
반응형

1. 축 제목 제거

x축 제목 제거

+theme(axis.title.x = element_blank())


y축 제목 제거

+theme(axis.title.y = element_blank())

 

2. 축 눈금 제거

x축 눈금 제거

+theme(axis.ticks.x=element_blank())


y축 눈금 제거

+theme(axis.ticks.y=element_blank())

 

 

3. 축 눈금 라벨 제거

x축 눈금 라벨 제거

+theme(axis.text.x=element_blank())


y축 눈금 라벨 제거

+theme(axis.text.x=element_blank())
반응형

댓글