View source: R/politenessPlot.R
politenessPlot | R Documentation |
Deprecated... This function has a new name now. See featurePlot for details.
politenessPlot(df_polite, ...)
df_polite |
a data.frame with politeness features calculated from a document set, as output by |
... |
other arguments passed on to featurePlot. See featurePlot for details. |
a ggplot of the prevalence of politeness features, conditional on split
. Features are sorted by variance-weighted log odds ratio.
data("phone_offers")
polite.data<-politeness(phone_offers$message, parser="none", drop_blank=FALSE)
politeness::politenessPlot(polite.data,
split=phone_offers$condition,
split_levels = c("Tough","Warm"),
split_name = "Condition",
top_title = "Average Feature Counts")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.