state_map: State Map

Description Usage Arguments Value

View source: R/instamap.R

Description

This function generates a map of a US state from the ggplot2 and maps packages while displaying county outlines and the variable of your choice as a color gradient.

Usage

1
state_map(df_path, state, county_label, var_label)

Arguments

df_path

The path of your csv file.

state

The US state to be visualized.

county_label

The column label where the state counties are in your csv file.

var_label

The column label where your variable of choice is in your csv file.

Value

A US state map with counties as a ggplot plot object.


twotailstats/instamap documentation built on May 17, 2019, 10:14 a.m.