프로그래밍 Programming
15. 워드 클라우드 Word Clouds
문장전달자
2014. 11. 26. 19:46
728x90
아래와 같이 corpus 내의 단어들을 대상으로 빈도 기준으로 워드 클라우드 Word Clouds 를 만들어 본다.
> install.packages("wordcloud") // 패키지부터 설치하고
Installing package into ‘C:/Users/fukaeri/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
trying URL 'http://cran.nexr.com/bin/windows/contrib/3.1/wordcloud_2.5.zip'
Content type 'application/zip' length 466745 bytes (455 Kb)
opened URL
downloaded 455 Kb
package ‘wordcloud’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\fukaeri\AppData\Local\Temp\RtmpW2Kcx4\downloaded_packages
> library(wordcloud) // 워드클라우드 실행
Loading required package: RColorBrewer
> set.seed(123) // 동일한 레이아웃을 위해서
> wordcloud(names(freq), freq, min.freq=5)
>
728x90