TurningPlot: TurningPlot:

Description Usage Arguments Value Examples

View source: R/turning_plot.R

Description

Fits a spline to a given gene in a given dataset. Finds the turning points. Plots the turning points and spline.

Usage

1
TurningPlot(genename, dataset, timelag = 0, 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

Lags the time. Usually desired if wanting to start from t = 0. Defaults to 0.

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
TurningPlot('comp100000_c0_seq2',Laurasmappings)

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