Base.plotFeatureGroupMeans

Base.plotFeatureGroupMeans(feature, groupFeature, horizontal=False, outPath=None, show=True, figureID=None, title=True, xAxisLabel=True, yAxisLabel=True, **kwargs)

Plot the means of a feature grouped by another feature.

The plot will include 95% confidence interval bars. The 95% confidence interval for each feature is calculated using the critical value from the two-sided Student’s t-distribution.

Parameters:
  • feature (identifier) – The feature name or index that will be grouped.

  • groupFeature (identifier) – The feature name or index that defines the groups in feature

  • horizontal (bool) – False, the default, draws plot bars vertically. True will draw bars horizontally.

  • outPath (str, None) – A string of the path to save the current figure.

  • show (bool) – If True, display the plot. If False, the figure will not display until a plotting function with show=True is called. This allows for future plots to placed on the figure with the same figureID before being shown.

  • figureID (hashable, None) – A new figure will be generated for None or a new id, otherwise the figure with that id will be activated to draw the plot on the existing figure.

  • title (str, bool) – The title of the plot. If True, a title will automatically be generated.

  • xAxisLabel (str, bool) – A label for the x axis. If True, a label will automatically be generated.

  • yAxisLabel (str, bool) – A label for the y axis. If True, a label will automatically be generated.

  • kwargs – Any keyword arguments accepted by matplotlib.pyplot’s errorbar function.

Keywords: confidence interval bars, student’s t-distribution, centers, compare, chart, figure, image, graphics, side by side, bar chart, t-test, uncertainty, groups, visualization