fun facet_wrap(facets: Any, ncol: Any? = null, nrow: Any? = null, order: Any? = null, format: Any? = null, dir: String = "h"): OptionsMap
Splits data by one or more faceting variables.
For each data subset creates a plot panel and lays out panels according to the ncol
, nrow
and dir
settings.
facets
- string|list, one or more faceting variable names.
order
- int|list, specifies ordering direction panels.
1 - ascending, -1 - descending, None - default (ascending).
The order
values are positionally matched to variables in facets
.
format
- string|list, specifies the format pattern for displaying faceting values.
The format
values are positionally matched to variables in facets
.
Direction: either "h" for horizontal, the default, or "v", for vertical.
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"