R/metapredict_plot.R
plotCoefficients.RdMake a ggplot of the coefficients from a glmnet object trained on a gene
expression meta-analysis (either logistic or multinomial classification).
plotCoefficients( fitResult, lambda, classLevels = NA, decreasing = FALSE, geneIdOrder = NA, org = "org.Hs.eg" )
| fitResult | glmnet object. |
|---|---|
| lambda | value of lambda to use in |
| classLevels | Order of classes in the confusion matrix. If |
| decreasing | logical indicating whether to sort genes by decreasing coefficient. |
| geneIdOrder | Optional character array of Entrez Gene IDs specifying the order
of genes. If |
| org | Name of package for mapping Entrez Gene IDs to gene symbols,
passed to |
A ggplot object.