fcgo_l10_pplot: Plot -log10 Transformed p-values

Description Usage Arguments Value

View source: R/fc_graphic_output.R

Description

Plots p-values after -log10 transforming them. This makes a plot where points higher up on the y-axis are lower p-values. Points are colored by detection reagant and shaped by antigen being detected.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
fcgo_l10_pplot(
  p_vals,
  pdf_name,
  main,
  line_method,
  gopts,
  pt_colors,
  pt_shapes,
  ylim = NULL
)

Arguments

p_vals

A vector of p-values.

pdf_name

The name of the output file where the plot will be saved. Should be a full file path.

main

The title of the plot.

line_method

A string indicating the method you want to use to draw the arbitrary cutoff line. "bonferroni" (for p < 0.05), "fdr" (for q < 0.2), and "raw" (just -log10(0.05)) are supported.

gopts

A list of graphical options. Must have specified the subparameters:

  • gopts$ppar_mar The margins for this plot. See ?par for more info. Default is c(5.1, 4.1, 4.1, 6).

  • gopts$reag_legend_inset The inset for the legend relative to the plot.

  • gopts$reag_cats The categories for your detection reagants.

  • gopts$reag_cols The colors for the detection reagant categories.

  • gopts$ant_shapes The shapes for the antigens being detected.

pt_colors

Colors for each point in p_vals. These should be generated from gopts$reag_cols. See ?fcgo_get_prop for an example of how to generate this.

pt_shapes

Shapes for each point in p_vals. These should be generated from gopts$ant_shapes. See ?fcgo_get_prop for an example of how to generate this.

ylim

An optional parameter for setting the y-limits of the plot.

Value

Nothing!


kmorrisongr/fcan documentation built on Sept. 9, 2020, 10:12 a.m.