Produce a plot for a feature_calculations object
Usage
# S3 method for class 'feature_calculations'
plot(
x,
type = c("matrix", "cor", "violin", "box", "quality"),
norm_method = c("zScore", "Sigmoid", "RobustSigmoid", "MinMax", "MaxAbs"),
unit_int = FALSE,
clust_method = c("average", "ward.D", "ward.D2", "single", "complete", "mcquitty",
"median", "centroid"),
cor_method = c("pearson", "spearman"),
feature_names = NULL,
...
)Arguments
- x
feature_calculationsobject containing the raw feature matrix produced bytheft::calculate_features- type
characterspecifying the type of plot to draw. Can be one of"matrix","cor","violin","box", or"quality". Defaults to"matrix"- norm_method
characterspecifying a rescaling/normalising method to apply iftype = "matrix"or iftype = "cor". Can be one of"zScore","Sigmoid","RobustSigmoid","MinMax", or"MaxAbs". Defaults to"zScore"- unit_int
Booleanwhether to rescale into unit interval[0,1]after applying normalisation method. Defaults toFALSE- clust_method
characterspecifying the hierarchical clustering method to use iftype = "matrix"or iftype = "cor". Defaults to"average"- cor_method
characterspecifying the correlation method to use iftype = "cor". Defaults to"pearson"- feature_names
charactervector denoting the name of the features to plot iftype = "violin". Defaults toNULL- ...
Arguments to be passed to
ggplot2::geom_bariftype = "quality",ggplot2::geom_rasteriftype = "matrix",ggplot2::geom_rasteriftype = "cor", orggplot2::geom_pointiftype = "violin"
