I also want to change the state column to be in terms of the FIPS code. Just not sure what parameters to use and how to do this since I am new to R.
Here are the parameters given by R:
plot_usmap(regions = c("states", "state", "counties", "county"),
include = c(), data = data.frame(), values = "values",
theme = theme_map(), lines = "black", labels = FALSE,
label_color = "black")
It is unclear exactly what you are trying to achieve without an example, but here is how I was able to convert a column
state
in a data.frame from the abbreviation to the FIPS code: