fun scale_y_continuous(name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, expand: List<Number>? = null, naValue: Number? = null, format: String? = null, trans: String? = null): Scale
Continuous scale for y axis
name
- The name of the scale - used as the axis label or the legend title.
If None, the default, the name of the scale
is taken from the first mapping used for that aesthetic.
breaks
- A numeric vector of positions (of ticks).
labels
- A vector of labels (on ticks).
limits
- 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.
expand
- list of numbers
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.
naValue
- Missing values will be replaced with this value.
format
- string
Specifies the format pattern for labels on the scale.
string Name of built-in transformation ('identity', 'log10', 'reverse', 'sqrt').
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: https://github.com/JetBrains/lets-plot-kotlin/blob/master/docs/formats.md
Examples: ".2f" -> "12.45" "Score: {.2f}" -> "Score: 12.45" "Score: {}" -> "Score: 12.454789"