getBoxPlotWithHighlightGroup: Plotly function to generate standard box and whisker plot...

View source: R/getBoxPlotWithHighlightGroup.R

getBoxPlotWithHighlightGroupR Documentation

Plotly function to generate standard box and whisker plot with highighted groups

Description

Plotly function to generate standard box and whisker plot with highighted groups

Usage

getBoxPlotWithHighlightGroup(
  .data,
  key,
  group,
  groupBaselineLabel,
  value,
  valueLabel,
  text,
  highlightGroup,
  colors = c("#BBBDC0", "#287BA5"),
  highlightColors = c("orange", "red"),
  plotName
)

Arguments

.data

dataframe containing numeric values between 2 groups

key

dataframe key column

group

string - group column - should only contain 2 groups

groupBaselineLabel

string - value indicating the group label that should be used as the comparison

value

numeric - numeric value to compare between groups

valueLabel

string - column indicating the label for the .value values

text

string - column containing text values to show in tooltip

highlightGroup

string - column with highlight groups (A vs B or 1 vs 2 etc...)

colors

vector of colors to use for base boxplot and jitter - defaults to grey/blue. Color used for baseline should be passed as first value

highlightColors

vector of colors to use for highlighted points - defaults to orange/red

plotName

string - name to attribute to plot (used for tracking clicks, events, etc)

Value

returns plotly box and whisker plot with secondary traces indicating highlighted groups


cusom/CUSOM.ShinyHelpers documentation built on Oct. 23, 2023, 6:50 a.m.