Wordclouds visualize Rabindranath

Wordclouds visualize Rabindranath

I've been learning about the work of Rabindranath Tagore, including The Fugitive Gold. Reading is the best way to study, but it helps to experience his work in alternate formats; word clouds are a visual representation.

In this week's R for Data Science: Lunch Break Lessons I've experimented with the word cloud package to visualize word frequency. For example...

# RT_corpus is found at github.com/mnr - R-for-Data-Science-Lunchbreak-Lessons/01_171_wordcloud.R

RT_DTmatrix <- DocumentTermMatrix(RT_corpus, 
                                  control = list(stopwords = TRUE, 
                                  removePunctuation = TRUE,
                                  removeNumbers = TRUE,
                                  stemming = TRUE))

RT_frequent <- findMostFreqTerms(RT_DTmatrix, n = 800)

wordcloud(words = names(RT_frequent$The.Fugitive),
          freq = RT_frequent$The.Fugitive,
          scale = c(6,0.25),
          colors = brewer.pal(9, "Paired" ),
          min.freq = 2)

... produces the word cloud in the banner of this article. Here's the complete graphic...

No alt text provided for this image

You can see several themes peeking through - which provides an interesting alternative to understanding the story.

Here's the instructional video on how to use word cloud with R.

Do you find this interesting? I write every week. Subscribe to see more or check out the archives at mnRRRRRRRRRRR.


要查看或添加评论,请登录

Mark Niemann-Ross的更多文章

  • Documenting My Code ... For Me

    Documenting My Code ... For Me

    There are two signs of old age: old age, and ..

  • R Meets Hardware

    R Meets Hardware

    R is a programming language for statistical computing and data visualization. It has been adopted in the fields of data…

    2 条评论
  • Party Buzz Kill: modifying data

    Party Buzz Kill: modifying data

    So Steve (SQL), Marsha (C), Bob (Python), and I (R) are at this party. We have TOTALLY cleared the room, especially now…

    2 条评论
  • Rain - Evapotranspiration = mm Water

    Rain - Evapotranspiration = mm Water

    "Eeee-VAP-oooo-TRANS-PURR-ation," I savor the word as I release it into our conversation. I'm still at the party with…

  • Party Buzz Kill: Data Storage

    Party Buzz Kill: Data Storage

    I'm at this party where Bob and Marsha and I are discussing the best languages for programming a Raspberry Pi. Bob…

    5 条评论
  • R Waters My Garden

    R Waters My Garden

    I'm at a party, and the topic of programming languages comes up. A quarter of the room politely leaves, another half…

    10 条评论
  • Caning and Naming

    Caning and Naming

    We've been back from Port Townsend for a week. Progress on the boat isn't as dramatic as it is when we're spending the…

    1 条评论
  • Irrigate with R and Raspberry Pi

    Irrigate with R and Raspberry Pi

    I’m working on my irrigation system. This requires a controller to turn it on and off.

    3 条评论
  • 5 Reasons to Learn Natural Language Processing with R

    5 Reasons to Learn Natural Language Processing with R

    Why learn R? Why learn Natural Language Processing? Here's five reasons..

    1 条评论
  • Performing Natural Language Processing with R

    Performing Natural Language Processing with R

    I recently released a course on Educative covering topics in Natural Language Processing. Different Learners -…

    1 条评论

社区洞察

其他会员也浏览了