DCP_ScatterPlot: Scatter Plots of Expression vs. Time.

View source: R/DCP_GraphFunctions.R

DCP_ScatterPlotR Documentation

Scatter Plots of Expression vs. Time.

Description

Scatter Plots of Expression vs. Time.

Usage

DCP_ScatterPlot(
  x,
  genes.plot = NULL,
  Info1 = "gI",
  Info2 = "gII",
  text.size = 12,
  filename = NULL,
  file.width = 8,
  file.height = 8
)

Arguments

x

DCP_Rhythmicity() output

genes.plot

a vector of character strings. Names of genes to be plotted. Names should be same in nomenclature as gname in the data list. If NULL, the top 10 most rhythmic genes from group I will be used

Info1

character string. Used in the plot title for group I.

Info2

character string. Used in the plot title for group II (if exist).

text.size

the size of annotation texts.

filename

character string of the filename for exporting. If NULL, plots are not saved.

file.width

height of the export plot

file.height

width of the export plot

Value

A list of ggplot2 plots.

Examples

x = DCP_sim_data(ngene=1000, nsample=30, A1=c(1, 3), A2=c(1, 3),
phase1=c(0, pi/4), phase2=c(pi/4, pi/2),
M1=c(4, 6), M2=c(4, 6), sigma1=1, sigma2=1)

rhythm.res = DCP_Rhythmicity(x1 = x[[1]], x2 = x[[2]])
rhythm.plots = DCP_ScatterPlot(rhythm.res)
#to display plot in Rstudio use DCP_PlotDisplay()
#display the first five plots
DCP_PlotDisplay(rhythm.plots, id = 1:5)

DiffCircaPipeline/Rpackage documentation built on March 17, 2023, 7:32 a.m.