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

ch.getPlotLegendValsR Documentation

A function to create unique color, line type, and point type for up to three groups to be plotted

Description

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

Usage

ch.getPlotLegendVals(df.grpIndex, maxIntensityChanges = 8, maxHueChanges = 10)

Arguments

df.grpIndex

a dataframe containing a column for each grouping variable with the values containing the combination of those variables that are to be plotted. The last column should be the index number for the model that will be used for plotting. This dataframe is output by the ch.subsetDFbyGroups() function.

maxIntensityChanges

the maximum number of distinguishable intensity changes. DEFAULT = 8.

maxHueChanges

the maximum number of distinguishable hue changes. DEFAULT = 10.

Value

this returns a dataframe containing the folloing columns: indexNum (the index number of the dataframe from ch.subsetDFbyGroups()); lty (the line type values for the graph); the group column names; h (the hue for hsv() color of line); s (the saturation for hsv() color of line);v (the intensity for hsv() color of line)

Examples

ch.getPlotLegendVals(df.Index)

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