opts() theme() List - janeshdev/ggplot2 GitHub Wiki

opts() / theme() list

This page presents the list of available options for fine tuning a ggplot2 graph object.

Axis Attributes

usage examples

  • axis.text.x (text)
  • axis.text.y (text)
  • axis.title.x (text)
  • axis.title.y (text)
  • axis.line (segment)
  • axis.ticks (segment)
  • axis.ticks.length (unit)
  • axis.ticks.margin (unit)

Legend Attributes

usage examples

  • legend.background (rect)
  • legend.key (rect)
  • legend.key.size (unit)
  • legend.key.width (unit)
  • legend.text (text)
  • legend.title (text)
  • legend.title.align (?)
  • legend.position (?)
  • legend.justification (?)
  • legend.direction (?)
  • legend.box (?)

Graph/Panel Attributes

usage examples

  • panel.background (rect)
  • panel.border (rect)
  • panel.margin (unit)
  • panel.grid.major (line)
  • panel.grid.minor (line)
  • plot.background (rect)
  • title (see plot.title)
  • plot.title (text)
  • plot.margin (unit)

Faceting Attributes

usage examples

  • strip.background (rect)
  • strip.text.x (text)
  • strip.text.y (text)

element_text()

  • colour
  • size
  • angle
  • hjust
  • vjust
  • face = 'bold' 'ital'

element_segment()

  • colour
  • size
  • linetype

element_line()

  • colour
  • size
  • linetype

element_rect()

  • colour
  • fill
  • size
  • linetype
⚠️ **GitHub.com Fallback** ⚠️