Coursera-JHU-Developing Data Products-CourseProject

Spark-Lin
3 Dec 2016

Word Cloud Generator

This presentation is created as part of the Course Project for the Developing Data Products course. It is used for the peer assessment. Which contains 2 parts:

  • Use Shiny to build an data App using real-time or historical data
  • Use R-Presentation or Slidify to create a supportive file to explain the general idea about the creation of Shiny App.

About the Shiny Word Cloud App

The small simple App allows user to:

  • Select the inputs, such like Minimum Word Frequency, Maximum Number of Word Selected of book you are reading.
  • Change amongs three books seleted to generate the Word Cloud

Data for this App

Books use for generate Word Could are from Gutenberg.

Source code and download books txt-format files are available on Github.

R Code (Extract) used in this App

library(wordcloud)
library(memoise)
library(tm)

# The list of selected books
# Books need to be downloaded and saveed in the same folder of ui.R and server.R 
books <<- list("Pride and Prejudice" = "Pride",
               "A Tale of Two Cities" = "Tale",
               "The Adventures of Sherlock Holmes" = "Adventures" )...