R code to Generating map of US states with specific colors
问题 I am trying to generate the map of U.S. in which each state can have one of the following colors: EScolors <- c("#7aad42","#4a77bb","#f7931e","#d3dfbd","#787878") I have created a data frame, states_info, to match each state with it's color. head(states_info) State.Code region St_Abbr Num_Estab colors 1 1 alabama AL 13123 #f7931e 3 4 arizona AZ 18053 #f7931e 4 5 arkansas AR 9154 #4a77bb 5 6 california CA 143937 #787878 6 8 colorado CO 21033 #d3dfbd 7 9 connecticut CT 17176 #f7931e I have