plotDeaDotPlot | R Documentation |
Visualizes results of DE analysis with dot plots.
plotDeaDotPlot(
object,
across = getDefaultGrouping(object),
across_subset = NULL,
relevel = NULL,
method_de = NULL,
by_group = TRUE,
max_adj_pval = NULL,
min_lfc = NULL,
n_highest_lfc = NULL,
n_lowest_pval = NULL,
genes = NULL,
color_by = "avg_log2FC",
alpha_by = NULL,
alpha_trans = "identity",
color_trans = "identity",
size_by = "p_val_adj",
size_trans = "reverse",
pt_alpha = 0.9,
pt_size = 2,
pt_color = "blue4",
pt_clrp = NULL,
pt_clrsp = "plasma",
scales = "free",
nrow = NULL,
ncol = NULL,
transform_with = NULL,
arrange_genes = TRUE,
reverse = TRUE,
reverse_within = FALSE,
assay_name = activeAssay(object),
...
)
object |
An object of class |
across |
Character value or NULL. Specifies the grouping variable of interest. Use |
across_subset |
Character vector or NULL. Specifies the particular groups
of interest the grouping variable specified in argument If set to NULL all of them are chosen. You can prefix groups you are NOT interested in with a '-'. (Saves writing if there are more groups you are interested in than groups you are not interested in.) Use |
relevel |
Logical value. If set to TRUE the input order of |
method_de |
Character value. Denotes the method to according to which the de-analysis is performed.
Given to argument |
by_group |
Logical value. If TRUE for every group in the grouping variable a single dot plot is created. If FALSE one plot for all groups and all gene sets is created. |
genes |
Character vector or NULL. If character, vector of gene names that determines which genes are included. If NULL, genes are taken according to the threshold input for average log fold change and adjusted p-value. |
color_by |
Character value. The variables by which to color the data points. |
pt_alpha |
Numeric value. Specifies the degree of transparency of all points. |
pt_size |
Numeric value. Specifies the size of all points. |
pt_clrp |
The color palette to be used if the specified variable displayed by
color is categorical/discrete. Run |
pt_clrsp |
The color spectrum to be used if the specified variable displayed by
color is continuous. Run |
nrow , ncol |
Numeric values or NULL. Used to arrange multiple plots. |
transform_with |
List or
In case of plotting:
Useful if you want to apply more than one transformation on variables mapped to
plotting aesthetics. Input for |
assay_name |
Only relevant if the |
... |
Used to absorb deprecated arguments or functions. |
x |
Character value. Specifies what is plotted on the x-axis.
If p_val_adj the scale is reversed. Ignored if |
A ggplot.
library(SPATA2)
data("example_data")
object <- example_data$object_UKF269T_diet
object <- runDEA(object, across = "histology")
plotDeaDotplot(object, across = "histology")
plotDeaDotplot(object, across = "histology", across_subset = c("tumor", "transition"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.