plot_links.Rd
Visualizes the occurrence of links in a 'WhatsApp' chatlog
plot_links(
data,
names = "all",
starttime = "1960-01-01 00:00",
endtime = "2200-01-01 00:00",
use_domains = TRUE,
exclude_long = 50,
min_occur = 1,
return_data = FALSE,
link_vec = "all",
plot = "bar",
exclude_sm = FALSE
)
A 'WhatsApp' chatlog that was parsed with parse_chat
.
A vector of author names that the plots will be restricted to.
Datetime that is used as the minimum boundary for exclusion. Is parsed with as.POSIXct
. Standard format is "yyyy-mm-dd hh:mm". Is interpreted as UTC to be compatible with 'WhatsApp' timestamps.
Datetime that is used as the maximum boundary for exclusion. Is parsed with as.POSIXct
. Standard format is "yyyy-mm-dd hh:mm". Is interpreted as UTC to be compatible with 'WhatsApp' timestamps.
If TRUE, links are shortened to domains. This includes the inputs in link_vec. Default is TRUE.
Either NA or a numeric value. If numeric value is provided, removes all links/domains longer than x characters. Default is 50.
The minimum number of occurrences a link has to have to be included in the visualization. Default is 1.
If TRUE, returns the subset data frame. Default is FALSE.
A vector of links that the visualizations will be restricted to.
The type of plot that should be returned Options are "heatmap", "cumsum", "bar" and "splitbar".
If TRUE, excludes the 'WhatsApp' system messages from the descriptive statistics. Default is FALSE.
Plots and/or the subset data frame based on author names, datetime and emoji occurrence
data <- readRDS(system.file("ParsedWhatsAppChat.rds", package = "WhatsR"))
plot_links(data)