contributionBars: contributionBars

Description Usage Arguments Author(s)

View source: R/contributionBars.R

Description

Produces bar charts for multivariate analyses. Plots the contribution to the variance from each data point for upwards of two axes (components).

Usage

1
2
3
contributionBars(factor_scores, contributions, x_axis = 1, y_axis = 2, col = NULL, 
	main = NULL, upper = 'steelblue4', lower = 'firebrick2', threshold = 0, 
	sortContributions = TRUE, pretty = FALSE, show.bg.bars = FALSE)

Arguments

factor_scores

The factor scores, or x- and y-axis points of a data set.

contributions

The amount of contribution to the variance (between 0-1) by each data point.

x_axis

Which axis is the x-axis? Default is 1.

y_axis

Which axis is the y-axis? Default is 2.

col

A single-column matrix of colors for each data point.

main

A title to be placed at the top of the graph.

upper

The color used to identify the upper bound items that contribute above average variance.

lower

The color used to identify the lower bound items that contribute above average variance.

threshold

A threshold (between 0-1) to draw upper and lower bounds for important items. Default is 1/number of items.

sortContributions

boolean, if TRUE, items will be sorted by contribution. if FALSE, items will appear in their row order.

pretty

a boolean. If FALSE, use the current version. If TRUE, make the bars with prettyBars.

show.bg.bars

a boolean. Only used if pretty is TRUE. If TRUE, background bars are plotted for a fill effect.

Author(s)

Derek Beaton


prettyGraphs documentation built on May 1, 2019, 9:25 p.m.