violinPlot#
Last Updated: Nov 17, 2023
Description#
Creates violinplot for selected clusters
Usage#
violinPlot(
gobject,
spat_unit = NULL,
feat_type = NULL,
expression_values = c("normalized", "scaled", "custom"),
feats = NULL,
genes = NULL,
cluster_column,
cluster_custom_order = NULL,
color_violin = c("feats", "cluster"),
cluster_color_code = NULL,
strip_position = c("top", "right", "left", "bottom"),
strip_text = 7,
axis_text_x_size = 10,
axis_text_y_size = 6,
show_plot = NA,
return_plot = NA,
save_plot = NA,
save_param = list(),
default_save_name = "violinPlot"
)
Arguments#
|
giotto object |
|
spatial unit (e.g. “cell”) |
|
feature type (e.g. “rna”, “dna”, “protein”) |
|
expression values to use (e.g. “normalized”, “scaled”, “custom”) |
|
features to plot |
|
deprecated, use feats argument |
|
name of column to use for clusters (e.g. “leiden_clus”) |
|
custom order of clusters |
|
color violin according to “genes” or “clusters” |
|
color code for clusters |
|
position of gene labels (e.g. “top”, “right”, “left”, “bottom”) |
|
size of strip text |
|
size of x-axis text |
|
size of y-axis text |
|
show plot. TRUE or FALSE |
|
return ggplot object. TRUE or FALSE |
|
directly save the plot. TRUE or FALSE |
|
list of saving parameters, see
|
|
default save name for saving, don’t change, change save_name in save_param |
Value#
ggplot