View source: R/plot_lexical_dispersion.R
plot_lexical_dispersion | R Documentation |
Visualizes the occurrence of specific keywords within the chat. Requires the raw message content to be contained in the preprocessed data
plot_lexical_dispersion(
data,
names = "all",
starttime = "1960-01-01 00:00",
endtime = "2200-01-01 00:00",
keywords = c("hello", "world"),
return_data = FALSE,
exclude_sm = FALSE,
...
)
data |
A 'WhatsApp' chatlog that was parsed with |
names |
A vector of author names that the plots will be restricted to. |
starttime |
Datetime that is used as the minimum boundary for exclusion. Is parsed with |
endtime |
Datetime that is used as the maximum boundary for exclusion. Is parsed with |
keywords |
A vector of keywords to be displayed, default is c("hello","world"). |
return_data |
Default is FALSE, returns data frame used for plotting when TRUE. |
exclude_sm |
If TRUE, excludes the 'WhatsApp' System Messages from the descriptive statistics. Default is FALSE. |
... |
Further arguments passed down to |
Lexical Dispersion plots for specified keywords
data <- readRDS(system.file("ParsedWhatsAppChat.rds", package = "WhatsR"))
plot_lexical_dispersion(data, keywords = c("auch"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.