ch.getPlotLegendVals | R Documentation |
This function creates unique color, line type, and point type for up to two groups to be plotted.
ch.getPlotLegendVals(df.grpIndex, maxIntensityChanges = 8, maxHueChanges = 10)
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. |
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)
ch.getPlotLegendVals(df.Index)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.