fun scale_size(range: Pair<Number, Number>? = null, name: String? = null, breaks: List<Number>? = null, labels: List<String>? = null, limits: Pair<Number?, Number?>? = null, naValue: Number? = null, guide: Any? = null, trans: String? = null): Scale
Continuous scale for size (~radius)
range
- A pair of numbers.
The range of sizes that the input values are mapped to.
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.
naValue
- Missing values will be replaced with this value.
guide
- A function used to create a guide (guide_colorbar(), guide_legend()) or its name ("colorbar",
"legend");
"none" will hide the guide.
trans
- string
Name of built-in transformation ('identity', 'log10', 'reverse', 'sqrt').