Hi I created a usmap using
plot_usmap(regions="counties",data=big.covid,values = "density")+
labs(title="Unweighted Density by County")+
theme(panel.background = element_rect(color="black"))+
scale_fill_continuous(low="white",high="darkblue", name="Density")
rather than knitting, I get this error:
Error in [.data.frame
(result, , c(setdiff(names(result), names(data)), : undefined columns selected
any idea of how to identify the error and fix it? There are 59 variables would the issue be in a colname not being used in the map above? using x=x,y=y,id=fips which are built into the plot_usmap call