In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to set ggplot2 facet facet_grid adjustment coordinates". In daily operation, I believe many people have doubts about how to set ggplot2 facet facet_grid adjustment coordinates. Xiaobian consulted all kinds of data and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to set ggplot2 facet facet_grid adjustment coordinates". Next, please follow the editor to study!
Ggplot2 facets set facet_grid to implement one-page multi-graph facet_grid (facets, margins = FALSE, scales = "fixed", space = "fixed", shrink = TRUE, labeller = "label_value", as.table = TRUE, switch = N...
Ggplot2 facet setting facet_grid to realize multiple graphs on one page
Facet_grid (facets, margins = FALSE, scales = "fixed", space = "fixed", shrink = TRUE, labeller = "label_value", as.table = TRUE, switch = NULL, drop = TRUE) setting meaning facet_grid (. ~ cyl) according to the cyl facet and behavior 1, the horizontal facet is divided, and the number of columns is the horizontal number facet_grid (drv ~.) of cyl. According to the drv facet, listed as 1, the vertical facet is carried out, and the horizontal number of rows of drv facet_grid (drv ~ cyl) is divided according to cyl and drv facets, horizontally according to cyl, and vertically according to drvspace = "free" according to the graph y-axis, or x-axis ratio, free allocation of space.
Compared with the grid, it is more manual. The graphics can be set to better meet their own requirements.
The scales of scales = "fixed" x and y are the same in the plane used. The scales of scales = "free" x and y can be changed in each layout. Scales = "free_x fixed y-axis, x-axis free change scales =" free_y "fixed X-axis, y-axis free change.
Scales parameters can control the axis very well: for example, according to the default setting of scales, because the facet is inconsistent according to the coordinates, after the coordinates are fixed, there is no corresponding data for the blank scale on the x-axis. After setting the scales= "free", the data distribution is more reasonable.
P_box=p_box+facet_grid (. ~ Type,scales= "free") p_box here, on the "ggplot2 facet facet_grid adjustment coordinates how to set" the end of the study, I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.