Produce a plot for a feature_calculations object
Usage
# S3 method for feature_calculations
plot(
x,
type = c("quality", "matrix", "cor", "violin"),
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_calculations
object containing the raw feature matrix produced bytheft::calculate_features
- type
character
specifying the type of plot to draw. Defaults to"quality"
- norm_method
character
specifying 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
Boolean
whether to rescale into unit interval[0,1]
after applying normalisation method. Defaults toFALSE
- clust_method
character
specifying the hierarchical clustering method to use iftype = "matrix"
or iftype = "cor"
. Defaults to"average"
- cor_method
character
specifying the correlation method to use iftype = "cor"
. Defaults to"pearson"
- feature_names
character
vector denoting the name of the features to plot iftype = "violin"
. Defaults toNULL
- ...
Arguments to be passed to
ggplot2::geom_bar
iftype = "quality"
,ggplot2::geom_raster
iftype = "matrix"
,ggplot2::geom_raster
iftype = "cor"
, orggplot2::geom_point
iftype = "violin"