renderWithTooltips | R Documentation |
Render plot with tooltips
renderWithTooltips( plot, varDict, plotScales = NULL, callback = NULL, point.size = 10, dpi = 72, width = NA, height = NA, customGrob = NULL, ... )
plot |
A ggplot object. |
varDict |
Variable dictionary in the following format:
|
plotScales |
A list with two fields: x and y. Defines axis scales (transformations) for the purpose of displaying original values in tooltips. If NULL (default), values are displayed "as is". |
callback |
Callback function for adding custom content to the tooltips (see the example app). |
point.size |
Point size for calibrating hovering accuracy (optional). |
dpi |
DPI value (optional). |
width |
Plot width (in inches; optional). |
height |
Plot height (in inches; optional). |
customGrob |
optional grob object. It allows to pass original plot with grob manipulations. |
... |
Additional parameters passed to ggsave. |
Non-numeric variables are only back-transformed to their original values if they are passed to ggplot as factors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.