plot_features: Plot features over a reference matrix

Description Usage Arguments Value

View source: R/plot-gc-ims.R

Description

Takes a vector of features (with the standard <GC>:<IMS> feature names) and plots the values over a reference gcims matrix. Can be used to show feature importance/p-values.

Usage

1
2
plot_features(importance, reference_gcims, n_features = 0,
  reverse_values = FALSE, discretise_features = FALSE, ...)

Arguments

importance

vector of feature values (importance)

reference_gcims

gcims matrix over which to plot the features

n_features

(optional) plot only the top n_features

reverse_values

(optional, logical) Consider small feature values as 'big' for the purpose of the colour scale and picking the top n_features

discretise_features

show a ret point over each feature, instead of a colour scale

...

passed to plot_gcims

Value

gcims ggplot overlayed with feature values at the correct locations


JimSkinner/toftools documentation built on Oct. 30, 2019, 7:55 p.m.