plotCV | 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 |
|
Internal usage in shinyQC
.
gg
object from ggplot2
x1 <- matrix(seq_len(10), ncol = 2)
x2 <- matrix(seq(11, 20), ncol = 2)
x3 <- matrix(seq(21, 30), ncol = 2)
x4 <- matrix(seq(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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.