Geographical heat map in R

后端 未结 4 1142
孤独总比滥情好
孤独总比滥情好 2020-12-13 21:20

i want to create a map of the US in R with the states color coded in a heat map type of way based on a metric. I know how to do this using the googleVis api but i can\'t us

4条回答
  •  [愿得一人]
    2020-12-13 21:27

    There is a complete example in the ggplot2 package, see ?map_data.

    library(ggplot2)
    example(map_data)
    

提交回复
热议问题