16. 워드 클라우드 Word Clouds - 옵션
Word Clouds 의 기타옵션
Reducing Clutter With Max Words - 표시될 단어의 갯수를 max.words 를 통해 늘리거나 줄일 수 있다.
> set.seed(142)
> wordcloud(names(freq), freq, max.word= 100)
Reducing Clutter With Min Freq - 표시될 갯수를 제한하는 또 다른 방법은 min.freq 를 이용하는 것이다. 아래 예제는 최소 12번 이상 언급되는 단어들만 나타나도록 했다.
> set.seed(142)
> wordcloud(names(freq), freq, min.freq= 9)
Adding Some Colour - Color-Brewer (Neuwirth, 2011)의 brewer.pal() 를 이용하여 색을 입힐 수 있다.
> set.seed(142)
> wordcloud(names(freq), freq, max.word= 10, colors=brewer.pal(6, "Dark2"))
Varying the Scaling - scale() 을 이용하여 폰트 사이즈를 조정할 수 있다. 기본값은 가장 빈도가 높은 단어가 4, 그리고 가장 적은 단어가 0.5 이다.
> set.seed(142)
> wordcloud(names(freq), freq, max.word= 30,scale=c(5, .1), colors=brewer.pal(6, "Dark2"))
Rotating Words - rot.per 을 통해 수직인 텍스트의 비율을 조정할 수 있다.
> set.seed(142)
> wordcloud(names(freq), freq, max.word= 30, rot.per=0.2, colors=brewer.pal(6, "Dark2"))