getScatterPlotByGroup: generate scatter plot colored by group optionally add linear...

View source: R/getScatterPlotByGroup.R

getScatterPlotByGroupR Documentation

generate scatter plot colored by group optionally add linear model fitted values trace lines per group member.

Description

generate scatter plot colored by group optionally add linear model fitted values trace lines per group member.

Usage

getScatterPlotByGroup(
  .data,
  key,
  x,
  y,
  group,
  groupBaselineLabel,
  text,
  addFitLines = TRUE,
  plotName
)

Arguments

.data

A dataframe

key

A string or numeric column - key value for dataframe.

x

A numeric column for x value in scatter - independent variable used in linear model fits if applicable

y

A numeric column for y value in scatter - response variable used in linear model fits if applicable

group

A string column indicating group membership - should be binary.

groupBaselineLabel

string constant - indicating the base reference value for group parameter

text

string column indicating value to display on hover / tooltip

addFitLines

whether to add fit lines to the scatter plot based on groups from group parameter

plotName

string indicating the name of the plot

Value

plolty scatter plot object


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