PlotDoubleML {HetSeq}R Documentation

Plot Heterogeneity-seq DoubleML Results

Description

This plotting functions creates a Vulcano Plot to visualize DoubleML Results.

Usage

PlotDoubleML(
  table,
  highlights = NULL,
  p.cutoff = 0.05,
  est.cutoff = NULL,
  highlights.color = NULL,
  label.repulsion = 1,
  density.color = TRUE,
  density.n = 500,
  point.scale = 0.5,
  xlab = "Estimate",
  ylab = bquote("-" ~ log[10] ~ FDR),
  linetype = "dashed"
)

Arguments

table

Table from the Hetseq using the doubleML method.

highlights

A vector of genes to highlight in the plot.

p.cutoff

Adds a dashed horizontal line at the given adjusted p-value cutoff.

est.cutoff

Adds two dashed vertical lines (+/-) at the given estimate cutoff.

highlights.color

A vector of colors for gene highlights.

label.repulsion

Represents the force parameter of the ggrepel::geom_label_repel() function. Higher values reduce label overlap.

density.color

Color data points by density. Default is TRUE.

density.n

Set granularity of 2d density color.

point.scale

Set point size.

xlab

Set label of the x-axis.

ylab

Set label of the y-axis.

linetype

Set the linetype of the p-value and estimate cutoff line.

Value

ggplot object.

Examples


  tab <- HetseqDoubleML(data, trajectories, score.name = "score")
  PlotDoubleML(tab, highlights=c("MYC", "GAPDH", "ISG15"))


[Package HetSeq version 0.1.0 Index]