CosinorPlot: CosinorPlot:

Description Usage Arguments Value Examples

View source: R/cosinor_functions.R

Description

Fits a cosinor model to a given gene in a given dataset and plots the model

Usage

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

Arguments

genename

The name of a gene intended for plotting. Must be a string.

dataset

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

timelag

The value of time for which observations begin. Defaults to 6.

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.

Value

Prints or saves ggplot2 object(s)

Examples

1
CosinorPlot('comp100000_c0_seq2', Laurasmappings )

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