GGplot - Layer (data + mapping + geom + stat + position)

About

Layer =

  • data: The data frame (in a variable or a function, if null inherited)
  • + mapping: Mapping data to geom properties (ie aesthetics)
  • + geom : The geometric object to use display the data
  • + stat: The statistical transformation to use on the data
  • + position: Position adjustment

Let op: geom, stat, position and annotate have also shortcut functions that creates layer. Example:

Syntax

layer(...)

layer


Powered by ComboStrap