R/theme.r
The X WordPress theme is one of the best and most popular themes available in the market. If a truly once-and-for-all WordPress theme is what you’re after, then you need to look no further. For a website building experience filled with excitement and excellence, choose the elegant and lovable X theme. Synapse X Themes This Website was made by (TrueKevin#2422) for people who owned Synapse X and want a custom Theme and aren't in the official Synapse X discord(DM me for Request). We Build Premium WordPress Theme, Plugin, Addon Our premium WordPress themes & plugins are light-weight fully responsive for all device such as tab, smart phone, mini screen etc. We set the price most affordable so anyone can buy our theme in their budget. “What really turned me over was the ability to understand how everything.
Themes are a powerful way to customize the non-data components of your plots:i.e. titles, labels, fonts, background, gridlines, and legends. Themes can beused to give plots a consistent customized look. Modify a single plot's themeusing theme()
; see theme_update()
if you want modify the active theme, toaffect all subsequent plots. Use the themes available in complete themes if you would like to use a complete theme such astheme_bw()
, theme_minimal()
, and more. Theme elements are documentedtogether according to inheritance, read more about theme inheritance below.
X Themeco
Arguments
line | all line elements ( |
---|---|
rect | all rectangular elements ( |
text | all text elements ( |
title | all title elements: plot, axes, legends ( |
aspect.ratio | aspect ratio of the panel |
axis.title, axis.title.x, axis.title.y, axis.title.x.top, axis.title.x.bottom, axis.title.y.left, axis.title.y.right | labels of axes ( |
axis.text, axis.text.x, axis.text.y, axis.text.x.top, axis.text.x.bottom, axis.text.y.left, axis.text.y.right | tick labels along axes ( |
axis.ticks, axis.ticks.x, axis.ticks.x.top, axis.ticks.x.bottom, axis.ticks.y, axis.ticks.y.left, axis.ticks.y.right | tick marks along axes ( |
axis.ticks.length, axis.ticks.length.x, axis.ticks.length.x.top, axis.ticks.length.x.bottom, axis.ticks.length.y, axis.ticks.length.y.left, axis.ticks.length.y.right | length of tick marks ( |
axis.line, axis.line.x, axis.line.x.top, axis.line.x.bottom, axis.line.y, axis.line.y.left, axis.line.y.right | lines along axes ( |
legend.background | background of legend ( |
legend.margin | the margin around each legend ( |
legend.spacing, legend.spacing.x, legend.spacing.y | the spacing between legends ( |
legend.key | background underneath legend keys ( |
legend.key.size, legend.key.height, legend.key.width | size of legend keys ( |
legend.text | legend item labels ( |
legend.text.align | alignment of legend labels (number from 0 (left) to1 (right)) |
legend.title | title of legend ( |
legend.title.align | alignment of legend title (number from 0 (left) to1 (right)) |
legend.position | the position of legends ('none', 'left', 'right','bottom', 'top', or two-element numeric vector) |
legend.direction | layout of items in legends ('horizontal' or'vertical') |
legend.justification | anchor point for positioning legend inside plot('center' or two-element numeric vector) or the justification according tothe plot area when positioned outside the plot |
legend.box | arrangement of multiple legends ('horizontal' or'vertical') |
legend.box.just | justification of each legend within the overallbounding box, when there are multiple legends ('top', 'bottom', 'left', or'right') |
legend.box.margin | margins around the full legend area, as specifiedusing |
legend.box.background | background of legend area ( |
legend.box.spacing | The spacing between the plotting area and thelegend box ( |
panel.background | background of plotting area, drawn underneath plot( |
panel.border | border around plotting area, drawn on top of plot so thatit covers tick marks and grid lines. This should be used with |
panel.spacing, panel.spacing.x, panel.spacing.y | spacing between facetpanels ( |
panel.grid, panel.grid.major, panel.grid.minor, panel.grid.major.x, panel.grid.major.y, panel.grid.minor.x, panel.grid.minor.y | grid lines ( |
panel.ontop | option to place the panel (background, gridlines) overthe data layers ( |
plot.background | background of the entire plot ( |
plot.title | plot title (text appearance) ( |
plot.title.position, plot.caption.position | Alignment of the plot title/subtitleand caption. The setting for |
plot.subtitle | plot subtitle (text appearance) ( |
plot.caption | caption below the plot (text appearance)( |
plot.tag | upper-left label to identify a plot (text appearance)( |
plot.tag.position | The position of the tag as a string ('topleft','top', 'topright', 'left', 'right', 'bottomleft', 'bottom', 'bottomright)or a coordinate. If a string, extra space will be added to accommodate thetag. |
plot.margin | margin around entire plot ( |
strip.background, strip.background.x, strip.background.y | background of facet labels ( |
strip.placement | placement of strip with respect to axes,either 'inside' or 'outside'. Only important when axes and strips areon the same side of the plot. |
strip.text, strip.text.x, strip.text.y | facet labels ( |
strip.switch.pad.grid | space between strips and axes when strips areswitched ( |
strip.switch.pad.wrap | space between strips and axes when strips areswitched ( |
... | additional element specifications not part of base ggplot2. In general,these should also be defined in the |
complete | set this to |
validate |
|
Theme inheritance
Theme elements inherit properties from other theme elements hierarchically.For example, axis.title.x.bottom
inherits from axis.title.x
which inheritsfrom axis.title
, which in turn inherits from text
. All text elements inheritdirectly or indirectly from text
; all lines inherit fromline
, and all rectangular objects inherit from rect
.This means that you can modify the appearance of multiple elements bysetting a single high-level component.
Learn more about setting these aesthetics in vignette('ggplot2-specs')
.
See also
X Theme Documentation
+.gg()
and %+replace%,element_blank()
, element_line()
,element_rect()
, and element_text()
fordetails of the specific theme elements.