Miscellaneous
Manual Legend
In Lets-Plot, as in ggplot2, legends are automatically generated based on the aesthetic mappings in the plot. Sometimes, however, this automatic generation doesn't provide the precise control needed for complex visualizations. Parameter manualKey
and aesthetic parameters of the guideLegend()
function addresses this limitation.
See: manual_legend.ipynb
Multiple Color Scales
Use colorBy
/fillBy
parameters and paint_a
/paint_b
/paint_c
aesthetics if you need to display two different layers with the same color aesthetic but different color scales.
Scale Functions
To specify a scale for any group of aesthetics, use the special scale functions: scaleManual()
, scaleContinuous()
, scaleGradient()
, etc.
Quantiles
Density-like plots let you show the quantiles by mapping them to a particular colour palette.
Stackable Position Adjustments
To configure positioning where groups are stacked on top of each other, use the positionStack()
and positionFill()
functions.
See: position_stack.ipynb