In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to use R language to draw data graphics, the content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Plot is a general drawing function, hist is a histogram, and boxplot is a box diagram. These functions will overwrite the previous graphics, how to create multiple graphics to facilitate viewing at the same time? There are three ways:
1. Open a new graphics window before creating a new drawing, and each new drawing will appear in the nearest graphics window.
Dev.new () statement 1dev.new () statement 2...
In the above statement, a new window opens before each image is displayed.
2. Use the forward and backward buttons on the graphical interface.
3. You can use functions such as dev.new,dev.next,dev.prev,dev.set to open multiple windows at the same time, and choose which window to output to. Use help (dev.cur) to view the description. This seems to be troublesome.
If you put different graphics in one window, you can first create a 2-row and 3-column graph collection with a similar statement of par (mfrow = c (2p3)), and then draw one by one with plot. The result is shown in the following figure:
3.2 A simple example
3.3 graphic parameters
You can customize multiple features of a picture (font, color, axis, title, legend, etc.) through graphic parameters. The par function can set the parameters of the graph, execute par () to view various parameters, add the parameter no.readonly = TRUE, and view the list of parameters that can be modified. It is important to note that after setting par, it is valid until the software is closed (until the end of the session).
You can record the original parameters first, and then end a statement before restoring. For example:
Opar
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.