This method calculates the length of each utterance, organised by character and drama.
utteranceStatistics(drama, normalizeByDramaLength = TRUE)
The dramatic text(s)
Logical value. If true, the resulting values will be normalized by the length of the drama.
Returns an object of class QDUtteranceStatistics, which is essentially a data.frame.
QDUtteranceStatistics
characterNames
# NOT RUN { data(rksp.0) ustat <- utteranceStatistics(rksp.0) # } # NOT RUN { boxplot(ustat$utteranceLength ~ ustat$character, col=qd.colors[1:5], las=2, frame=FALSE) # }
Run the code above in your browser using DataLab