In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
The knowledge points of this article "how to draw a fan in R language" are not quite understood by most people, so the editor summarizes the following contents to you. The content is detailed, the steps are clear, and it has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to draw a fan in R language" article.
Plotrix package fan.plot draws a fan diagram
In R language, the pie chart can be completed by pie () function or drawn by ggplot2 package histogram through the change of polar coordinates.
The pie chart is composed of each fan, how to superimpose each sector into a combined overlapping fan chart? You can use the fan.plot function in the plotrxi package
Take dat data as an example:
Dat type Num1 A 902 B 343 C 564 D 995 E 15
The fan chart drawn with fan.plot is as follows:
> library (plotrix) > fan.plot (dat$Num,labels = as.character (dat$type))
Color control can be based on the parameter col, or other parameters can be adjusted to adjust the details of the picture.
> fan.plot (dat$Num,labels = as.character (dat$type), col = c ("pink", "red", "green", "grey", "blue")) the above is about "how to draw a fan chart in R language". I believe you all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about it, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.