PlotResiduals | R Documentation |
Plot predicted values vs residuals to assess data linearity and heteroskedasticity This requires densifying the expression matrices so it might be wise to only plot a subset of cells/genes.
PlotResiduals(x, y, mfit, nonzero.only = T)
x |
Design matrix + covariates matrix |
y |
Expression response |
mfit |
Fitted glmnet model |
nonzero.only |
Only plot residuals vs predicted for nonzero values |
KDE density plot of residuals vs predicted
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.