scmet_plot_vf_tail_prob: Plot tail probabilities for variable feature analysis

View source: R/utils_plots.R

scmet_plot_vf_tail_probR Documentation

Plot tail probabilities for variable feature analysis

Description

Function for plotting the tail probabilities associated with the HVF/LVF analysis. The tail probabilities are plotted on the y-axis, and the user can choose which parameter can be plotted on the x-axis, using the x parameter.

Usage

scmet_plot_vf_tail_prob(
  obj,
  x = "mu",
  task = "hvf",
  title = NULL,
  nfeatures = NULL
)

Arguments

obj

The scMET object after calling the scmet_hvf_lvf function.

x

The parameter to plot on the x-axis. Values can be mu (default), epsilon or gamma.

task

The task for identifying variable, either "hvf" or "lvf".

title

Optional title, default NULL.

nfeatures

Optional parameter, denoting a subset of number of features to plot (only for non HVF/LVF features). Mostly to reduce over-plotting.

Value

A ggplot2 object.

Author(s)

C.A.Kapourani C.A.Kapourani@ed.ac.uk

See Also

scmet, scmet_differential, scmet_hvf_lvf, scmet_plot_mean_var, scmet_plot_efdr_efnr_grid, scmet_plot_volcano, scmet_plot_ma

Examples

# Fit scMET
obj <- scmet(Y = scmet_dt$Y, X = scmet_dt$X, L = 4, iter = 100)
obj <- scmet_hvf(scmet_obj = obj, delta_e = 0.7)
scmet_plot_vf_tail_prob(obj = obj, x = "mu")


andreaskapou/scMET documentation built on Feb. 1, 2024, 10:46 a.m.