Miscellaneous
Panning and Zooming
Use the ggtb
function to enable Pan
and Zoom
interactivity on a chart.
This function adds a toolbar containing three tool-buttons: pan, rubber-band zoom, and center-point zoom.
Extended Text Markup
In tooltips/labels/texts and wherever else there is text, you can use:
Interactive links, e.g.
<a href="https://github.com">GitHub</a>
.See: lp_verse.ipynb
LaTeX formulas with
superscript, e.g.
\( a^b \)
;subscript, e.g.
\( x_i \)
;Greek letters, e.g.
\( \Omega \)
, andsome special symbols, e.g.
\( a \cdot b \neq c \)
.
See: latex_support.ipynb
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