In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
How to use R language ggplot2 to draw scatter chart, in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
The picture to be imitated today comes from the paper Core gut microbial communities are maintained by beneficial interactions and strain variability in fish. The journal is Nature microbiology.
Image.png
The repeated picture is a scatter chart in Figure2
The image.png graph looks a bit like a line chart because the scatter points are too dense. The first step is to prepare the data.
A total of three columns of data, one column x, one column y, and one column is a text label, which point you want to add a text label, corresponding to the content of the text label written on this line, do not want to add is blank
If you need sample data, you can leave a message directly. If you think this tweet is still helpful, you can forward it and support it.
Partial screenshot of data format
Read in data
Here is a relatively convenient way to read data. The data is ready according to the above format, then select all, right-click to select copy, and then open the R language and run the following command
Df1
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.