Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the ggplot ​ 2 graphic syntax of R language?

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "what is the ggplot2 graphic syntax of R language". The explanation content in this article is simple and clear, easy to learn and understand. Please follow the idea of Xiaobian slowly and deeply to study and learn "what is the ggplot2 graphic syntax of R language" together!

graph grammar

A statistical graph is a mapping from data to graph attributes of geometric objects. In addition, graphs may contain statistical transformations of the data that are eventually plotted in a particular coordinate system, while facets can be used to generate graphs of different subsets of the data.

A statistical graph is composed of these independent graphical components.

The most basic part is the data you want to visualize and a series of mappings that map variables in the data to graph attributes.

Geom: Graphic elements actually seen in the diagram, such as points, lines, polygons, etc.;

Stats: Some sort of aggregation of data, such as group counting, linear regression, etc. Optional, but useful.

Scale: Mapping values of data to graphic space, such as color, size, or shape, so that readers can read the original data from the graphic. This is shown by drawing legends and axes.

Coordinate system (coord): describes how the data is mapped to the plane on which the drawing is located, and provides the coordinate axes and network lines needed to view the drawing. Cartesian coordinates are usually used, but can also be transformed to other types, such as polar coordinates and map projections.

Facet: Describes how data is broken down into subsets and how subsets are plotted and presented jointly. Facet mapping is also called conditional mapping or grid mapping.

R is a language and operating environment for statistical analysis and mapping. It is a free, open source software belonging to GNU system. It is an excellent tool for statistical calculation and statistical mapping.

Thank you for reading, the above is "R language ggplot2 graphics syntax is what" the content, after the study of this article, I believe we have a deeper understanding of R language ggplot2 graphics syntax is what this problem, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report