R/getBoxplots.R

Defines functions getBoxplots

Documented in getBoxplots

getBoxplots <-
function(corrs.list, ...) {
  # bind all tables in the list into one:
  corrs.list.df <- Reduce(cbind, corrs.list)
  # remove "p-value" columns to keep only "corr":
  corrs.list.df <- corrs.list.df[ , seq(1, ncol(corrs.list.df), 2)]
  # give each column the name of the group:
  colnames(corrs.list.df) <- names(corrs.list)
  # plot the corrs:
  par(mar = c(7, 4, 4, 2))
  boxplot(corrs.list.df, ...)
  abline(h = 0.7, lty = 2, col = "darkgrey")
}

Try the DeadCanMove package in your browser

Any scripts or data that you put into this service are public.

DeadCanMove documentation built on May 2, 2019, 6:48 p.m.