Helper function to add layer to scatter plot
addLayerToScatterPlot(
gg,
aesVar,
pars,
generalPars,
layerFunction,
useHandlers = FALSE
)
ggplot
object
ggplot
object
layers specific aesthetics list of layer specific aesthetics
list of parameters specific to the layer aes
overall, not layer specific parameters can be overwritten by pars
function to use for adding the layer e.g. geom_line
if TRUE
we use handlers to repress the expected warning:
Hover is set via the 'text' aesthetic in ggplot
, we need to pass this aesthetic to have it available
in plotly even though it is not used by geom_point. Defaults to FALSE
Adriaan Blommaert Laure Cougnaud