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))