AI/R ggplot2

ggplot2 package를 이용한 Graph 그리기

JAYNUX 2015. 2. 16. 01:58




Theme 설정 방법


테마로 한번 설정해 놓으면 변경된 내용을 쉽게 유지 할 수 있다.


변경 할 수 있는 요소들:

axis.title.x // 축 이름을 의미함.

axis.text.x //축 눈끔을 의미함.

plot.title // 도표의 제목을 의미함.





Pie chart



How to show percentage in this chart?


use annotate()


usage:

annotate("text", x="?", y="?", label="name")



참고자료

ggpie: pie graphs in ggplot2

R: Pie chart with percentage as labels using ggplot2