CorSignificantPlot: CorSignificantPlot :

Description Usage Arguments Value Examples

View source: R/correlation_functions.R

Description

Prints or saves the genes found to be most significant by CorSignificantPlot or CorAnalysisPar.

Usage

1
2
3
4
5
6
7
8
CorSignificantPlot(
  results,
  dataset,
  number = 10,
  print = TRUE,
  save = FALSE,
  negative = FALSE
)

Arguments

results

A dataframe generated by CorAnalysis.

dataset

A transcriptomics dataset which was used with CorAnalysis to generate the results dataframe. First columns should be gene names. All other columns should be expression levels.

number

The number of most significant genes printed or saved.

print

Logical. If TRUE renders significant genes in the plot viewer. Defaults to TRUE

save

Logical. If TRUE, saves plots to working directory. Defaults to FALSE.

negative

Logical. Set TRUE if negative signficant correlations are desired.

Value

Prints or saves ggplot2 object(s).

Examples

1
2
cor_results <- CorAnalysis('comp100002_c0_seq2',Laurasmappings)
CorSignificantPlot(cor_results, Laurasmappings, number = 15, save=TRUE, negative=FALSE)

nathansam/CircadianTools documentation built on Dec. 26, 2019, 11:30 a.m.