R: Barplot with Sorted Data Colored by ABCanalysis

ABCbarplot {DataVisualizations} | R Documentation

## Barplot with Sorted Data Colored by ABCanalysis

### Description

This plot can be read like a scree plot for PCA. It allowed to select the most important values visually.

### Usage

    ABCbarplot(Data,

    Colors=DataVisualizations::DefaultColorSequence[1:3],

    main,xlab,ylab="Value")

### Arguments

`Data` | [1:n] vector of Data, e.g. eigenvalues of PCA
`Colors` | three colors for A, B and C
`main` | title of plot
`xlab` | xlabel
`ylab` | ylabel

### Details

ABC analysis is explained in ABCanalysis. The visualization is based on ggplot2.

### Value

List V of

`ABCanalysis` | output of ABCanalysis
`ggobject` | object of ggplot2 plotted
`DF` | Data frame if another plot should be done manually

### Author(s)

Michael Thrun

### References

Ultsch. A ., Lotsch J.: Computed ABC Analysis for Rational Selection of Most Informative Variables in Multivariate Data, PloS one, Vol. 10(6), pp. e0129767. doi 10.1371/journal.pone.0129767, 2015.

### See Also

`ABCanalysis`

### Examples

    data('FundamentalData_Q1_2018')
    Data=as.matrix(FundamentalData_Q1_2018$Data)
    Data[!is.finite(Data)]=0
    results=prcomp(Data)
    main="Scree plot with Class A of the Most-Important Eigenvalues"
    plotlist = ABCbarplot(results$sdev,ylab='Eigenvalues',main=main)
    plotlist$ggobject

[Package DataVisualizations version 1.2.3 Index]