Toplot3Dtjct: Toplot3Dtjct

Description Usage Arguments Value Examples

View source: R/RePACT.R

Description

This function is to make 3D example plot for regression analysis

Usage

1
2
3
4
Toplot3Dtjct(trajectory.ob = tjct.ob, PCrange = 1:3, pheno,
  linear = T, fam = "binomial", enlag = 10, decided = F,
  theta = 60, phi = 180, singeplotname = NULL, multiplotname,
  titlename = "PC1-3 BMI trajectory regression\n")

Arguments

trajectory.ob

This is the object generated from Prepareforpseudoregress.g

PCrange

The PC dimensions used for 3D plotting, usually pick top 3 significant pCs

pheno

the column name for regression

linear

If true, perform a linear regression, else, perform a logistic regression '@param fam For logistic regression, "binomial" is used for glm '@param enlag this is to adjust the length of regression line, default is 10 '@param decided If TRUE, then only plot one based on angles by theta, and phi, otherwise, plot a series of figures in one big PDF. '@param theta A number indicating angle, I will work if decided '@param phi A another number indicating angle, I will work if decided '@param singeplotname a pdf file name if I have a decided single pdf '@param multiplotname a pdf file name if generating a series of figures '@param titlename This is the name in figure title '@param theta A number indicating angle, I will work if decided

Value

The output include: PCvariance this summrize the percentage of variance chosen PC can explain; PCanfpheno this is a data frame including PC information, phenotype information as well as pseudo.index and residues after regression; $object.raw.withinfo: this is a datafrom of raw data with pseudo.index and residues; $model: this is the model. reg.plot.2d this is the 2d regression plot. model.para: this is the regression parameter.

Examples

1
Toplot3Dtjct(T2D.tjct.ob,PCrange=c(1,3,4),pheno="disease",linear=F,multiplotname="test.pdf",titlename="tittle")

chenweng1991/EZsinglecell documentation built on July 11, 2020, 3:23 p.m.