plot_messages {WhatsR} | R Documentation |
Visualizing the number of sent messages per person in 'WhatsApp' chat logs
Description
Plots summarizing the amount of messages per person
Usage
plot_messages(
data,
names = "all",
starttime = "1960-01-01 00:00",
endtime = "2200-01-01 00:00",
plot = "bar",
return_data = FALSE,
exclude_sm = FALSE
)
Arguments
data |
A 'WhatsApp' chat log 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 |
plot |
Type of plot to be returned, options are "bar", "cumsum", "heatmap" and "pie". Default is "bar". |
return_data |
If TRUE, returns the subset data frame. Default is FALSE. |
exclude_sm |
If TRUE, excludes the 'WhatsApp' system messages from the descriptive statistics. Default is FALSE. |
Value
Plots summarizing the number of messages per person
Examples
data <- readRDS(system.file("ParsedWhatsAppChat.rds", package = "WhatsR"))
plot_messages(data)