---
title: "Introduction to onmaRg"
output: rmarkdown::html_vignette
vignette: >
  %\VignetteIndexEntry{demo}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
---

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:

```{r, eval=FALSE}
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))
```


