Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use ggplot2 to realize Rose Bubble Chart

Shulou Source: shulou.com Published: 2022-05-31 13:52:07 10月03日 Update

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

Tags: Bubble sequence polar coordinates rose two size data knowledge people attitude whole label but industry negative value pension different symmetry positive three Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Huawei Xiaomi vpn Docker