Introduction to onmaRg"

Currently, the primary functions for this package create data frames and spatial object

This example shows how to load marginalization data and create a plot showing Deprivation by region.

For sf objects:

library(onmaRg)
library(ggplot2)

DA_2016 <- om_geo(2016, "DAUID", "sf") %>%
  filter(CSDNAME == "Toronto")

plot <- ggplot() +
  geom_sf(data=DA_2016, aes(fill=DEPRIVATION_Q_DA16))


Try the onmaRg package in your browser

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

onmaRg documentation built on July 26, 2023, 5:08 p.m.