View source: R/getScatterPlotByGroup.R
getScatterPlotByGroup | R Documentation |
generate scatter plot colored by group optionally add linear model fitted values trace lines per group member.
getScatterPlotByGroup(
.data,
key,
x,
y,
group,
groupBaselineLabel,
text,
addFitLines = TRUE,
plotName
)
.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 |
plolty scatter plot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.