powered by
A function to create a box and whisker plot by group ID.
boxWhisker(data, groups, palette = "Paired")
Returns a box-whisker plot of the data by group ID.
a (non-empty) matrix of data values
a (non-empty) vector of group IDs with length equal to the number of rows in data
A color palette for plotting. The default is 'Paired.' See colorbrewer2.org for alternatives.
data(Nuclei) data(Groups) boxWhisker(Nuclei, Groups) #changing the color palette boxWhisker(data = Nuclei, groups = Groups, palette = 'Set1')
Run the code above in your browser using DataLab