Isolines

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  eval = nzchar(Sys.getenv("COMPILE_VIG"))
)
library(ggplot2)
library(VancouvR)

The City of Vancouver has a lot of different datasets that can easily be visualized. Mapping contour height lines can be accomplished in just a handful of lines of code.

ggplot(get_cov_data("elevation-contour-lines-1-metre-contours",format="geojson") ) + 
  geom_sf(aes(color=elevation),size=0.1) + 
  scale_color_viridis_c(option="inferno",guide=FALSE) + 
  theme_void()


Try the VancouvR package in your browser

Any scripts or data that you put into this service are public.

VancouvR documentation built on Oct. 21, 2021, 9:07 a.m.