scale YLog2
Continuous position scale (y) where trans="log2".
Parameters
The name of the scale - used as the axis label or the legend title. If null, the default, the name of the scale is taken from the first mapping used for that aesthetic.
A numeric vector of positions (of ticks).
A vector of labels (on ticks).
The maximum label length (in characters) before trimming is applied.
A pair of numbers specifying the data range for the scale. Use null
to refer to default min/max. Set limits if you want values to be consistent across multiple plots. Setting limits will remove data outside of the limits.
A numeric vector of length two giving multiplicative and additive expansion constants. The vector size == 1 => only multiplicative expand (and additive expand by default). Defaults: multiplicative = 0.05, additive = 0.
Missing values will be replaced with this value.
Specifies the format pattern for labels on the scale.
The position of the axis:
"left", "right" or "both" for y-axis;
"top", "bottom" or "both" for x-axis.
Format patterns in the format
parameter can be just a number format (like "d") or a string template where number format is surrounded by curly braces: "{d} cylinders". Note: the "$" must be escaped as "\$". For more info see: formats.html
Examples:
".2f" -> "12.45"
"Score: {.2f}" -> "Score: 12.45"
"Score: {}" -> "Score: 12.454789"