Description Usage Arguments Value Examples
Given a vector of correlation values from trim_cor
, this will produce
a line graph showing correlation with +/- shifts
1 | plot_trim_cor(x, ...)
|
x |
a vector of correaltion values from |
... |
arguments to be passed to plot |
graph to the device
1 2 3 4 5 6 7 8 9 | # create dummy dataset
l <- list()
for (i in 1:100) l[[i]] <- rnorm(100)
df <- as.data.frame(l)
names(df) <- paste("col", 1:100, sep = "_")
# order values (more obvious correlation shifts)
df <- apply(df, 2, sort)
out <- trim_cor(df[,1], df[,2], n = 10, p = 5)
plot_trim_cor(out, main = "plot of correlation values")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.