This package contains a number of functions to support the analysis of dramatic texts.
# loads a specific, pre-packaged play
data(rksp.0)
# calculates standard stats about a character
<- characterStatistics(rksp.0)
charStat
# fix character names
<- characterNames(charStat, rksp.0)
charStat
# plot them as a bar plot
barplot(charStat)
DramaAnalysis works on Mac OS X, Windows 10 and Linuxes, and requires R 3.3 or later.
# installation from CRAN
install.packages("DramaAnalysis")
# Install newest development version, requires devtools to be installed
::install_github("quadrama/DramaAnalysis", ref="develop/3.x") devtools
Please refer to the tutorial.