ch.getPlotLegendValsFromData: A function to create unique color, line type, and point type...

ch.getPlotLegendValsFromDataR Documentation

A function to create unique color, line type, and point type for up to two groups to be plotted from a dataframe

Description

This function creates unique color, line type, and point type for up to two groups to be plotted from a dataframe

Usage

ch.getPlotLegendValsFromData(
  data,
  grpCols,
  maxIntensityChanges = 8,
  maxHueChanges = 10
)

Arguments

data

the dataframe to be plotted.

grpCols

a vector of strings specifying the column names of the grouping variables.

Value

a list with all the subsetted dataframes

Examples

ch.getPlotLegendValsFromData (myDataframe, c("gender", "condition"))

ccpluncw/ccpl_R_chutils documentation built on Nov. 22, 2024, 5:18 a.m.