View source: R/plot_locations.R
plot_locations | R Documentation |
Plots the location data that is sent in the 'WhatsApp' chatlog on an auto-scaled map. Requires unanonymized 'Location' column in data
plot_locations(
data,
names = "all",
starttime = "1960-01-01 00:00",
endtime = "2200-01-01 00:00",
mapzoom = 5,
return_data = FALSE,
jitter_value = NA,
jitter_seed = 12345,
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 |
mapzoom |
Value for zoom into the map passed down to |
return_data |
If TRUE, returns a data frame of LatLon coordinates extracted from the chat for more elaborate plotting. Default is FALSE. |
jitter_value |
Amount of random jitter to add to the geolocations to hide exact locations. Default value is 0.01. Can be NA for exact locations. |
jitter_seed |
Seed for adding random jitter to coordinates. Passed to |
exclude_sm |
If TRUE, excludes the 'WhatsApp' system messages from the descriptive statistics. Default is FALSE. |
Plots for geolocation and/or a data frame of latitude and longitude coordinates
data <- readRDS(system.file("ParsedWhatsAppChat.rds", package = "WhatsR"))
plot_locations(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.