Description Usage Arguments Details Value Examples
View source: R/model_interpretation_plot.R
This function produces a plot for model interpretation, displaying
the feature weights,
the robustness of feature weights
the features scores across samples,
the distribution of metadata across samples, and
the proportion of model weights shown.
1 2 3 4 5 6 |
siamcat |
object of class siamcat-class |
fn.plot |
string, filename for the pdf-plot |
color.scheme |
color scheme for the heatmap, defaults to |
consens.thres |
float, minimal ratio of models incorporating a feature
in order to include it into the heatmap, defaults to |
heatmap.type |
string, type of the heatmap, can be either |
limits |
vector, cutoff for extreme values in the heatmap,
defaults to |
detect.lim |
float, pseudocount to be added before log-transformation
of features, defaults to |
max.show |
integer, maximum number of features to be shown in the model interpretation plot, defaults to 50 |
prompt |
boolean, turn on/off prompting user input when not plotting into a pdf-file, defaults to TRUE |
verbose |
control output: |
Produces a plot consisting of
a barplot showing the feature weights and their robustness (i.e. in what proportion of models have they been incorporated)
a heatmap showing the z-scores of the metagenomic features across patients
another heatmap displaying the metadata categories (if applicable)
a boxplot displaying the poportion of weight per model that is
actually shown for the features that are incorporated into more than
consens.thres
percent of the models.
Does not return anything, but produces the model interpretion plot.
1 2 3 4 5 | data(siamcat_example)
# simple working example
model.interpretation.plot(siamcat_example, fn.plot='./interpretion.pdf',
heatmap.type='zscore')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.