This project is to create Wrold Cloud from PDF file.
My code shows how a word cloud can be generated using the R
programming language on the basis of a given PDF document.
Used packages are as bellow:
- tm (text mining)
- wordcloud
- RColorBrewer (fancy colors in a word cloud)
Code strcture
- Loading the required libraries and setting inital parameters
- Reading the text in the PDF file
- Creating the text corpus
- Generating the word cloud. This result is the following:
- Anlyzing word frequency is as follow.
[1] Using R to create a Wrod Cloud from a PDF Document [2] Basic Text mining in R