Open mkiang opened 6 years ago
Right now the state abbreviations will not print if a value is NA:
NA
library(statebins) library(dplyr) data(USArrests) USArrests$state <- rownames(USArrests) USArrests$Assault[1] <- NA statebins(USArrests, value_col="Assault", name = "Assault", round=TRUE) + theme_statebins(legend_position="right")
Which returns this error:
1: In .sb_invert(gb$data[[1]]$fill, dark_label, light_label) : NAs introduced by coercion
It would be nice to still have the abbreviation printed -- possibly with a user-specified color.
Right now the state abbreviations will not print if a value is
NA
:Which returns this error:
It would be nice to still have the abbreviation printed -- possibly with a user-specified color.