traveltime_plot() plot the results of the traveltime()
function, showing the travel time from the facilities to the area of
interest.
Usage
traveltime_plot(
traveltime,
bb_area,
facilities = NULL,
contour_traveltime = 15,
annotation_location = "br",
annotation_scale = TRUE,
annotation_north_arrow = TRUE
)Arguments
- traveltime
A
listwith the output of thetraveltime()function.- bb_area
A
sfboundary box object with the area of interest.- facilities
A
sfobject with the existing facilities.- contour_traveltime
(optional) A number indicating the contour thresholds for the travel time (default:
15).- annotation_location
(optional) A
characterstring specifying the location of the annotation on the plot. Seeannotation_scalefor possible values (default:"br").- annotation_scale
(optional) A
logicalflag indicating whether to include a scale annotation on the plot (default:TRUE).- annotation_north_arrow
(optional) A
logicalflag indicating whether to include a north arrow annotation on the plot (default:TRUE).
Value
A ggplot2 plot showing the travel time from
the facilities to the area of interest.
See also
Other travel time functions:
friction(),
traveltime(),
traveltime_stats()
Examples
if (FALSE) { # \dontrun{
traveltime_data <-
naples_fountains |>
traveltime(
bb_area = naples_shape,
dowscaling_model_type = "lm",
mode = "walk",
res_output = 100
)
traveltime_data |>
traveltime_plot(
bb_area = naples_shape,
facilities = naples_fountains
)
} # }