plot_trim_cor: plot results from trim_cor

Description Usage Arguments Value Examples

Description

Given a vector of correlation values from trim_cor, this will produce a line graph showing correlation with +/- shifts

Usage

1

Arguments

x

a vector of correaltion values from trim_cor

...

arguments to be passed to plot

Value

graph to the device

Examples

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")

Swarchal/TISS documentation built on May 9, 2019, 3:24 p.m.