plotCV {MatrixQCvis} | R Documentation |
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.
plotCV(df)
df |
'data.frame' containing one or multiple columns containing the coefficients of variation |
Internal usage in 'shinyQC'.
'gg' object from 'ggplot2'
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)