I want to make a map of the U.S using ggplot and mark states by the data.
this is the link for my DB I tried this
map_data <- prop.table(table(data_benefits$state))
plot_usmap(data = map_data, values = "benefits", color = "red") +
scale_fill_continuous(name = "Benefits", label = scales::comma) +
theme(legend.position = "right")
but I didn't worked at all , I'm trying to paint the states in us by the states col in thr csv file I be glud if someone can help me thanks