Plot model improvements or view contributions from a result produced by [RunMistyR()] without rerunning the model.
Usage
MistyRPlot(
object = NULL,
res = NULL,
type = c("improvements", "contributions"),
top_n = 20,
target = NULL,
measure = NULL
)Arguments
- object
Optional `Seurat` object containing `MistyR` results.
- res
Optional result list, usually `object@tools$MistyR`.
- type
Result table to plot.
- top_n
Maximum number of records shown after ranking by absolute value.
- target
Optional target feature filter.
- measure
Improvement metric (
"gain.R2"by default, or"gain.RMSE") or"contribution"for view coefficients. On mistyR long tables,"value"selects the default metric for the chosen type, and contribution plots exclude intercepts and view p-values. Wide tables use the named numeric column, including"importance"if present.