us_map: US Map

Description Usage Arguments Value

View source: R/instamap.R

Description

This function generates a map of the lower 48 US states from the ggplot2 and maps packages while displaying the variable of your choice as a color gradient.

Usage

1
us_map(df_path, state_label, var_label)

Arguments

df_path

The path of your csv file.

state_label

The column label where the US states are in your csv file.

var_label

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

Value

A US map as a ggplot plot object.


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