BasicPlot: BasicPlot:

Description Usage Arguments Value Examples

View source: R/simple_plot_functions.R

Description

Plots activity data as points and average activity as lines

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
BasicPlot(
  genename,
  dataset,
  timelag = 0,
  method = "median",
  points = TRUE,
  print = TRUE,
  save = FALSE,
  path = NULL
)

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

Shifts the plot to earlier in time.

method

How should the average activity for each time point be calculated? 'median' or 'mean'

points

Logical. If FALSE then each observation will not be plotted as points.

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

A ggplot2 object

Examples

1
BasicPlot('comp100026_c0_seq2',Laurasmappings)

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