plot_condition_response: Plots drug response for scored data.

View source: R/plot.R

plot_condition_responseR Documentation

Plots drug response for scored data.

Description

Pretty-plots response for data which does not use a derived null model (e.g. for directly comparing drug response to DMSO response). Assumes that data was scored by score_conditions_vs_control and significant effects were called by call_condition_hits. Writes both a scatterplot and a volcano plot to file in the specified folder.

Usage

plot_condition_response(
  scores,
  control_name,
  condition_name,
  output_folder,
  loess = TRUE,
  neg_type = "Negative",
  pos_type = "Positive",
  volcano_type = "FDR",
  plot_type = "png"
)

Arguments

scores

Dataframe of scores returned from call_condition_hits.

control_name

Name of control passed to call_condition_hits.

condition_name

Name of condition passed to call_condition_hits.

output_folder

Folder to output plots to.

loess

If true and data was loess-normalized, plots loess null model instead (default TRUE).

neg_type

Label for significant effects with a negative differential effect passed to call_condition_hits (default "Negative").

pos_type

Label for significant effects with a positive differential effect passed to call_condition_hits (default "Positive").

volcano_type

One of "pval" or "FDR" to specify whether to plot -log10(pval) or -log2(FDR), respectively (default "FDR").

plot_type

Type of plot to output, one of "png" or "pdf" (default "png").


HenryWard/orthrus documentation built on June 2, 2023, 10:28 p.m.