df_plot: Plot data frame spatial objects.

Description Usage Arguments Value Examples

View source: R/00-misc.R

Description

df_plot plots a data frame spatial object. (A SpatialPolygonsDataFrame that has been "tidied" using the broom package.) Meant to be analogous to the ease of using plot() to quickly view a SpatialPolygonDataFrame object.

Usage

1

Arguments

df

A data frame returned from the spdf_to_df function.

Value

A ggplot2 plot of the county.

Examples

1
2
3
4
5
6
7
8
9
library(magrittr)

fresno <- readRDS(system.file("extdata", "fresno_spdf.rds", package = "purexposure"))
fresno %>% spdf_to_df %>% df_plot()

pull_spdf("fresno") 
pull_spdf("san diego", "township") 
   spdf_to_df() 
   df_plot()

leighseverson/purexposure documentation built on Aug. 13, 2021, 6:34 p.m.