How to use ggplot2 to realize Rose Bubble Chart
This article mainly introduces the relevant knowledge of "how to use ggplot2 to achieve rose bubble chart". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to use ggplot2 to achieve rose bubble chart" can help you solve the problem.
The overall difficulty of the chart is medium, using ggplot2 to write code, mainly about polar coordinate transformation and application. (in ggplot2 system, two higher-order uses are: polar coordinate system, geospatial polygon filling).
# load package:
Library ("ggplot2")
Library ("tidyr")
Library ("ggthemes")
Library ("dplyr")
Library ("Cairo")
Library ("showtext")
# load fonts:
Font.add ("myfontl", "msyhl.ttc")
Font.add ("myfont", "msyh.ttc")
Font.add ("myfzhzh", "founder bold black simplified .TTF")
# Lock the temporary directory of files:
Setwd ("D:/R/File")
# Import data
Circle_bubble