plot_usmap is confused when a column is named "values"
Assume a data.frame as follows...str(myDF)
$ fips : Factor w/ 30 levels ...
$ values : int ...
this also fails...plot_usmap(data = myDF)
Error in [.data.frame(map_df, , values) : undefined columns selected
BUT...this works...plot_usmap(data = myDF, values = "values" )
Error in [.data.frame(map_df, , values) : undefined columns selected
str(myDF)
$ fips : Factor w/ 30 levels ...
$ population : int ...
which produces the expected plotplot_usmap(data = myDF, values = "population" )
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4