R/plot_expr_by_numeric_var.r
plot_expr_by_numeric_var.Rd
Equivalent of plot_violin with a numeric x-axis.
plot_expr_by_numeric_var(
sce,
numeric_var = "p_tau",
subset_var = "cluster_celltype",
subset_group = "Oligo",
gene = "PLP1",
alpha = 0.05,
size = 0.01,
label_angle = 0
)
a SingleCellExperiment object
The colData variable for x-axis groups. Default is p_tau
The colData variable to subset on
The specific subset_var group to subset
The gene of interest
point alpha
point size
The angle of x-axis labels (e.g. 0, 45)
p a ggplot object
Generates a scatter plot of log2(counts+1) expression against numeric var. An additional plot of proportion of cells with non-zero counts per sample. Fits a linear model with confidence intervals for each plot.
Other plotting functions:
plot_reduced_dim()
,
plot_reduced_dim_gene()
,
plot_violin()