mapValues: Make a USA map with all the counties colored in

Description Usage Arguments

Description

Make a USA map with all the counties colored in

Usage

1
2
mapValues(df, county_index = 1, plot_index = 2, save = TRUE,
  filename = "./usa_plot.png", titleString = "default plot")

Arguments

df

The data frame of the counties in the US and the data to plot

county_index

The numerical index (base 1) of the column which contains the FIPS code

plot_index

The numerical index (base 1) of the column which contains the data we want to plot

save

T/F determines if we want to save the plot

filename

If we want to save, where are we saving?


brachunok/betterR documentation built on May 17, 2019, 12:04 p.m.