In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Most people do not understand the knowledge points of this article "how to set the theme parameters of ggplot2", so the editor summarizes the following, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to set the theme parameters of ggplot2" article.
Ggplot2 drawing theme parameter settings theme (line, rect, text, title, aspect.ratio, axis.title, axis.title.x, axis.title.x.top, axis.title.y, axis.title.y.right, axis.text, axis.text.x, axis....
Ggplot2 drawing theme parameter settings
Theme (line, rect, text, title, aspect.ratio, axis.title, axis.title.x, axis.title.x.top, axis.title.y, axis.title.y.right, axis.text, axis.text.x, axis.text.x.top, axis.text.y, axis.text.y.right, axis.ticks, axis.ticks.x, axis.ticks.y, axis.ticks.length, axis.line, axis.line.x, axis.line.y, legend.background, legend.margin, legend.spacing Legend.spacing.x, legend.spacing.y, legend.key, legend.key.size, legend.key.height, legend.key.width, legend.text, legend.text.align, legend.title, legend.title.align, legend.position, legend.direction, legend.justification, legend.box, legend.box.just, legend.box.margin, legend.box.background, legend.box.spacing, panel.background, panel.border, panel.spacing, panel.spacing.x, panel.spacing.y, panel.grid Panel.grid.major, panel.grid.minor, panel.grid.major.x, panel.grid.major.y, panel.grid.minor.x, panel.grid.minor.y, panel.ontop, plot.background, plot.title, plot.subtitle, plot.caption, plot.margin, strip.background, strip.placement, strip.text, strip.text.x, strip.text.y, strip.switch.pad.grid, strip.switch.pad.wrap,..., complete = FALSE Validate = TRUE) setting blank will take advantage of the function element_blank ()
The parameter setting content is inherited from the setting function line all line properties = element_line () rect all rectangular area properties = element_rect () text all text related attributes = element_text () title all title attributes = element_text () axis.title axis title text=element_text () axis.title.xx axis attributes axis.title=element_text () axis.title.yy axis properties axis.title=element_text () axis.text axis scale The signature property text=element_text () axis.text.x property and inheritance are similar to the previous Do not repeat = element_text () axis.text.y = element_text () axis.ticks axis tick marks line=element_line () axis.ticks.x = element_line () axis.ticks.y = element_line () axis.ticks.length tick lengths the distance between axis.ticks.margin ticks and tick labels axis.line axes line=element_line () axis.line.x = element_line () axis.line. Y = element_line () legend.background Legend background rect=element_rect () legend.margin Legend Boundary legend.key Legend symbol = element_rect () legend.key.size Legend symbol size legend.key.height Legend symbol height legend.key.width Legend symbol width legend.text Legend text label = element_text () legend.text.align Legend text label alignment 0 is left-aligned 1 is the right alignment of legend.title legend title text=element_text () legend.title.align legend title alignment legend.position legend location left, right, bottom, top Two-digit vector legend.direction legend arrangement direction "horizontal" or "vertical" legend.justification center mode center or two number vector legend.box multi-legend arrangement mode "horizontal" or "vertical" legend.box.just multiple legend center mode panel.background drawing area background rect=element_rect () panel.border drawing area border rect=element_rect () panel.margin drawing area margin panel.grid drawing area network Grid line line=element_line () panel.grid.major major grid line = element_line () panel.grid.minor secondary grid line = element_line () panel.grid.major.x = element_line () panel.grid.major.y = element_line () panel.grid.minor.x = element_line () panel.grid.minor.y = element_line () plot.background background of the entire drawing = element_rect () plot.title drawing title = element_text () plot.margin drawing margin top Right, bottom, left strip.background facet label background rect=element_rect () strip.text facet label text text=element_text () strip.text.x = element_text () strip.text.y = element_text () the above is the content of this article on "how to set the theme parameter of ggplot2" I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please pay attention to the industry information channel.
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.