How to use R language ggplot2 to draw violin pictures to show the hit rate of Curry Harden James?
Today, I will talk to you about how to use R language ggplot2 to draw violin pictures to show the hit rate of Master Curie Harden James. Many people may not know much about it. In order to make you understand better, the editor summed up the following contents. I hope you can get something from this article. The main content is to explore the regular season data of 14-15 NBA basketball players Curry, Harden, James and Westbrook. The previous data cleaning process is no longer introduced, the main content is mapping. The data you need to prepare for making a violin picture is two columns, the first column is used to represent the labels used for grouping, and the second column is the data. The actual data is as follows
Image.png
If we change it to our own experiment, we can compare it to four processes, each with multiple duplicate data, and each duplicate data is recorded.
If you need sample data, you can leave a message at the end of the text.
Drawing code
Library (ggplot2)
Library (ggthemes)
G