Description Usage Arguments Value Examples
This function is to make 3D example plot for regression analysis
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")
|
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 |
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.
1 | Toplot3Dtjct(T2D.tjct.ob,PCrange=c(1,3,4),pheno="disease",linear=F,multiplotname="test.pdf",titlename="tittle")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.