addLayerToScatterPlot: Helper function to add layer to scatter plot

View source: R/plots-staticScatterplotClinData.R

addLayerToScatterPlotR Documentation

Helper function to add layer to scatter plot

Description

Helper function to add layer to scatter plot

Usage

addLayerToScatterPlot(
  gg,
  aesVar,
  pars,
  generalPars,
  layerFunction,
  useHandlers = FALSE
)

Arguments

gg

ggplot object

aesVar

layers specific aesthetics list of layer specific aesthetics

pars

list of parameters specific to the layer aes

generalPars

overall, not layer specific parameters can be overwritten by pars

layerFunction

function to use for adding the layer e.g. geom_line

useHandlers

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

Value

ggplot object

Author(s)

Adriaan Blommaert Laure Cougnaud


clinDataReview documentation built on March 7, 2023, 5:13 p.m.