CosinorResidualDatasetPlot: CosinorResidualDatasetPlot

Description Usage Arguments Value Examples

View source: R/cosinor_functions.R

Description

Fits a cosinor model and plots the residuals for multiple genes in a dataset.

Usage

1
2
3
4
5
6
7
8
CosinorResidualDatasetPlot(
  dataset,
  timelag = 6,
  period = 24,
  print = TRUE,
  save = FALSE,
  path = NULL
)

Arguments

dataset

A transcriptomics dataset. First columns should be gene names. All other columns should be expression levels.

timelag

Shifts the plot to earlier in time.

period

The period of rhythmicity which is being tested for. Defaults to 24 (circadian).

print

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

save

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

path

The directory to be used for saving plots to. Uses the working directory by default. Not used if save=FALSE

Value

Prints or saves ggplot2 object(s)

Examples

1

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