View source: R/plot-places-chronology.R
plot_places_chronology | R Documentation |
Plot single or multiple place chronologies in different scales.
plot_places_chronology(
data,
id,
weekday = "all",
size_range = NULL,
colour_path = "black",
size_path = 2,
alpha_path = 0.25,
alpha_points = 0.85,
linetype_path = "solid",
force_repel = 3,
title = NULL,
axis_label = FALSE,
xlim = NULL,
ylim = NULL,
xextra = 3,
print_place_duration = TRUE,
point_padding = unit(1, "lines"),
exclude_sleep = TRUE,
facets = FALSE
)
data |
a data frame (columns: ID, day, duration, place, address, lon, lat, prop_duration). |
id |
vector, which contains questionnaire ids. Choosa "all" to compute all ids. |
weekday |
vector, which contains the weekday to plot. |
size_range |
specify the size for visualizatipn of duration. |
colour_path |
sepcify the path line colour. |
size_path |
specify the path line size. |
alpha_path |
specify the path line alpha value [0:1]. |
alpha_points |
specify the point alpha value [0:1]. |
linetype_path |
specify the linetype of the path line. |
force_repel |
specify how heavy the repel algorithmn should be. |
title |
title of the plot. |
axis_label |
show or hide axis labels (boolean). |
xlim |
specify plot x limits. |
ylim |
specify plot y limits. |
xextra |
extra space for time plot (units in cm). |
print_place_duration |
print place overall duration (hours). |
point_padding |
Amount of padding around labeled point. Defaults to unit(0, "lines"). |
exclude_sleep |
exclude sleep duration (boolean). |
facets |
plot facets (boolean). |
ggplot2 visualization of place chronology data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.