Shiny Application

David Manero
septiembre 28 2015

Best Spanish Books Word Cloud

Coursera Developing Data Products

Objectives of the Project

There is some objectives to be done with this project:

  • Use Shiny to do an application easy, simple, and using the concepts learned in the class.
  • Develop a useful application for my own working specialization (Twitter analysis)

I use the libraries tm and wordcloud to analize Twiiter hashtags, but it is not possible to acces to the Twitter API online without showing my credentials, so I decide to use some public documents, as the best Spanish Books ever wroten.

Getting The Corpus

Loading the Libraries:

library(tm)
library(wordcloud)

Loading the book:

text <- readLines("../lazarillo.txt", encoding="UTF-8")

Generating the Corpus:

myCorpus = Corpus(VectorSource(text))

Then doing several transformations and preparing the data for the word cloud generation.

Word Cloud Example

And getting the Word Cloud

wordcloud(dm$word, dm$freq, random.order=FALSE, colors=brewer.pal(8, "Dark2"))                   

plot of chunk unnamed-chunk-5

The Code and other links

All the code and this presentation is in:

Other Links: