reg_gam: Plot one gene raw data and its regressions

Description Usage Arguments Value

View source: R/regression_plots.R

Description

Tools for visualizing gene signals for one given gene with the gam framework.

Usage

1
2
3
reg_gam(data, gene, reg.f = "loess", span = 0.75, s.df = 4,
  regression = T, null.model = T, npred = F, sd.show = F,
  legend.show = F)

Arguments

data

a warpDEDataSet with results to be plotted.

gene

character, a gene of interest.

reg.f

a function to perform regression, either "ns" for natural splines, "loess" or "s" (default is "loess").

span

numeric, a smoothing parameter for the regression function (default is 0.75, see gam::lo for details).

s.df

numeric, a smoothing parameter for the nsplines regregression (default is 4, see splines::s for details about regularization).

regression

logical, if the loess regression is to be computed and plotted or not (default is TRUE).

null.model

logical, if the null model is to be computed and plotted or not (default is TRUE).

npred

logical, if the unshared part of the data is to be plotted or not(default is FALSE).

legend.show

logical, if the legend is wanted (default is FALSE).

Value

returns


strayMat/warpDE documentation built on Dec. 8, 2017, 2:42 a.m.