plotCV {MatrixQCvis} | R Documentation

## Plot CV values

### Description

The function 'plotCV' displays the coefficient of variation values of set of values supplied in a 'data.frame' object. The function will create a plot using the 'ggplot2' package and will print the values in the different columns in different colors.

### Usage

    plotCV(df)

### Arguments

`df` | 'data.frame' containing one or multiple columns containing the coefficients of variation

### Details

Internal usage in 'shinyQC'.

### Value

'gg' object from 'ggplot2'

### Examples

    x1 <- matrix(1:10, ncol = 2)
    x2 <- matrix(11:20, ncol = 2)
    x3 <- matrix(21:30, ncol = 2)
    x4 <- matrix(31:40, ncol = 2)

    ## calculate cv values
    cv1 <- cv(x1, "x1")
    cv2 <- cv(x2, "x2")
    cv3 <- cv(x3, "x3")
    cv4 <- cv(x4, "x4")

    df <- data.frame(cv1, cv2, cv3, cv4)
    plotCV(df)

[Package MatrixQCvis version 1.0.0 Index]