Plot a visualization showing participant travel time

GPE_plot_travel(visits_timedist, add_data_from = NA,
  plot_attribute = NA, plot_type = "histogram", metric = "time")

Arguments

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"

Examples

GPE_plot_travel(visits_timedist = visits_timedist)
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.