Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Example Analysis of Starbucks Store Distribution Map in ggplot2 Rose Chart

Shulou Source: shulou.com Published: 2022-06-01 01:53:50 09月30日 Update

Today, I will talk to you about the example analysis of the distribution map of Starbucks stores in the ggplot2 rose chart. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

It is not difficult to use ggplot2 to make a radial rose book, just add a polar coordinate conversion parameter to the ordinary single-sequence column chart.

However, when you encounter a relatively small and fresh case, it is worth doing it manually.

About the Starbucks store distribution TOP20 city distribution data map, the color and presentation form are relatively friendly, so I casually take it as a case to share with you.

No actual data is given in the original picture (so it needs to be estimated with the eyes)

Library ("rvest")

Library ("dplyr")

Library ("ggplot2")

Library ("grid")

Library ("showtext")

Library ("Cairo") font.add ("myfont", "msyh.ttc")

Find the latest statistics on the Internet

Url%html_table (header = TRUE,trim = TRUE,fill=TRUE)% >% as.data.frame ()

Urban data

Mydata

Tags: Data stores city rose buck content case Changzhou visualization distribution map example diagram analysis graphics quantity label angle language process Shanghai Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Redmi vpn macOS NVidia