Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use fmsb package to draw Radar Diagram in R language

Shulou Source: shulou.com Published: 2022-06-01 21:57:36 10月03日 Update

This article mainly explains "R language how to use fmsb package to draw radar map". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "R language how to use fmsb package to draw radar map".

Students who like to watch basketball will certainly not default to this picture. During the live broadcast of NBA or CBA games, they often use radar charts to show the players' personal data. For example, the following picture shows Harden's personal data.

Image.png

Multiple graphs put together can also be used to represent comparisons. For example, the difference between James and Harden's data can be seen intuitively in the following picture.

Image.png

But this radar map seems to be relatively rarely used in academic papers. Personally, I think it is quite suitable to show the comparison of some indicators between different individuals. For example, different varieties of apples, measure the content of sugar, acid, vitamins, anthocyanins and so on, with this radar map to display can be very intuitive to see which indicators of each apple variety are dominant.

Students who follow CBA should have watched the match between Liaoning and Guangdong yesterday. Prince Zhang of Liaoning alone scored 46 points to lead the team to win and put an end to a losing streak. Today's tweet will show the data of Childe Zhang last night with a radar chart.

Data source http://cbadata.sports.sohu.com/players/matches/100024158

The data format that the radar chart needs to prepare is as follows

Image.png

The first two rows are the value range of the data, and then there is the data that needs to be drawn. If there are multiple groups, just arrange them down in turn.

Read in the data, select the data, right-click to copy, and then run the following command df

Tags: Data radar language that is individual learning different intuitive inter content classmate variety multiple indicators format players Apple Harden Zhang Gong Liaoning Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL OPPO Reno NVidia Linux Microsoft