Skip to contents

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 list with the output of the traveltime() function.

bb_area

A sf boundary box object with the area of interest.

facilities

A sf object with the existing facilities.

contour_traveltime

(optional) A number indicating the contour thresholds for the travel time (default: 15).

annotation_location

(optional) A character string specifying the location of the annotation on the plot. See annotation_scale for possible values (default: "br").

annotation_scale

(optional) A logical flag indicating whether to include a scale annotation on the plot (default: TRUE).

annotation_north_arrow

(optional) A logical flag 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
    )
} # }