With Group Option
interface WithGroupOption
Data Grouping
The group parameter is not a true aesthetic but controls how data is grouped for visualization:
Default Grouping Behavior:
Lets-Plot automatically groups data by discrete variables mapped to aesthetics like color, shape, linetype, etc. This creates separate visual elements (lines, paths, polygons) for each unique combination of these variables.
Explicit Group Control:
Use
group = "variableName"to group only by that specific variable, overriding default groupingUse
group = listOf("var1", "var2", ...)to group by the interaction of multiple variablesUse
group = emptyList<Any>()to disable all the grouping completely