View source: R/GPE_plot_travel.R
GPE_plot_travel | R Documentation |
Plot a visualization showing participant travel time
GPE_plot_travel(visits_timedist, add_data_from = NA,
plot_attribute = NA, plot_type = "histogram", metric = "time")
visits_timedist |
a dataframe of "visits" with travel time and distance (see ?GPE_travel_time_dist) |
add_data_from |
(optional) a participants or locations dataframe, containing either a "participant_id" or a "location_id" column, plus a column with an attribute to plot. Must be paired with "plot_attribute" |
plot_attribute |
(optional) the column name from the "add_data" dataframe containing the attribute to show on the plot |
plot_type |
(optional) either "histogram" (default), "boxplot" |
metric |
(optional) measure for travel, either "time" (default), or "distance" |
GPE_plot_travel(visits_timedist = visits_timedist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.