Warning: Undefined variable $default_menu_align in /home/bsudslor/public_html/wp-content/themes/mesmerize-pro/pro/inc/header-options/navigation-options/nav-bar.php on line 1349
2000 W University Ave, Muncie, IN 47306,USA

DSL Workshop: Text Analysis and Data Visualization using R

DSL Workshop: Text Analysis and Data Visualization using R

Digital Scholarship Lab Workshop: Text Analysis and Data Visualization using R
Holmes Finch and Matthias Raess
Thursday, March 22, 2018, 2-5 PM
Schwartz Complex, Bracken Library 105E

Ball State’s Digital Scholarship Lab will host a workshop on doing text analysis (and other forms of data visualization) with R. R is a powerful statistical software that can be employed to analyze textual data, which can include novels, newspaper articles, interview transcripts, and collections of tweets. R enables researchers to detect patterns of language and meaning in large and complex sets of texts.

The workshop’s leaders will introduce participants to methods for analyzing and creating plots from textual data (e.g. most frequent words) using the R statistical programming language. More precisely, participants will be able to see how to get from textual data input to a finished plot, and how to run simple sentiment analyses with textual data. While some of the data come from ready-made datasets (e.g. the works of Jane Austen), participants will also be able to ‘witness’ live data collection from Twitter from pre-processing steps to finalized plots and sentiment analysis. (For links to the scripts used in the workshop, click here or scroll to the bottom of this page.)

The Workshop will have two parts (participants can register for both parts or just part 1).

Part 1: 2:00-3:30 PM — Introduction to using R for text analysis. This portion is for those mainly interested in learning more about text analysis.
Part 2: 4:00-5:00 PM – B.Y.O.D. (Bring Your Own Data). This portion is for those with a textual data set that is close to being ready to go and who are interested in trying some hands-on experimentation.

For those planning to participate in the second part of the workshop, please bring you laptop to the workshop and make the following preparations:

  1. Download and install R and RStudio on your machine. For a quick and dirty explanation of this process go to http://web.cs.ucla.edu/~gulzar/rstudio/.
  2. If you want to analyze Twitter data, please download and install rtweet (http://rtweet.info/) on your machine and have a developer app set up on Twitter (https://apps.twitter.com/).
  3. Please determine in advance what variables you have in your text data and what research question(s) you seek to answer. Ideally, your data should be in either csv-format (if mostly quantitative) or docx/txt (if mostly text documents). If you need assistance organizing your data, we can provide that during the second part of the workshop.

Contact the DSL at dsl@bsu.edu with questions about preparing for the workshop.

For more on R, check out these resources:

R cheat sheets on various topics 

https://www.rstudio.com/resources/cheatsheets/

Text mining in R ebook link 

https://www.tidytextmining.com/

Lynda – Up and Running with R

https://www.lynda.com/R-tutorials/Up-Running-R/120612-2.html

Lynda – R Statistics Essential Training

https://www.lynda.com/R-tutorials/R-Statistics-Essential-Training/142447-2.html

Code School – Try R

https://www.codeschool.com/courses/try-r

DataCamp – Various courses on R, including focus on visualization, text mining, and stringr-package.

https://www.datacamp.com

Resources

Quick R

http://www.statmethods.net

Rbloggers – 750 contributors.

https://www.r-bloggers.com

STHDA – Just a ton of cool stats and R stuff, including tips on ggplot2 visualization package.

http://www.sthda.com/english/

Stackoverflow – This is where you ask questions.

http://stackoverflow.com

R Scripts

Click here for R Scripts on how to clean up data fetched from twitter. (Click on the download button)

Click here for R Scripts on how to visualize data fetched from twitter. (Click on the download button)

Click here for R Scripts on how mine Jan Austen text for data. (Click on the download button)