plot_scatter_basic: plot a basic scatter plot of replicates

View source: R/plot_scatter_basic.R

plot_scatter_basicR Documentation

plot a basic scatter plot of replicates

Description

Plot protein-level data in a sactter plot.

Usage

plot_scatter_basic(
  df,
  repA = "rep1",
  repB = "rep2",
  size_gg = 3,
  col_significant = "#41AB5D",
  col_other = "grey",
  sig_text = "(significant)",
  insig_text = "(not significant)",
  shape = 21,
  stroke = 0.2,
  col_border = NULL
)

Arguments

df

data.frame with at least columns gene, significant and some rep[0-9].

repA

string that is column in df. Expects name to be in the form of rep[0-9], e.g. 'rep1'.

repB

string that is column in df. Expects name to be in the form of rep[0-9], e.g. 'rep1'.

size_gg

numeric. Size of point.

col_significant

string. Color for significant protein interactors.

col_other

string. Color for other protein interactors.

sig_text

string. Text for significant interactor to be displayed in legend.

insig_text

string. Text for non-significant interactors to be displayed in legend.

shape

integer. The shape of the point. Default is 21 (circle).

stroke

numeric. The stroke width.

col_border

string. The color of the borders/outline.

Examples

## Not run: 
# run example data
p = example_data %>% 
calc_mod_ttest() %>%
  id_significant_proteins(fdr_cutoff = 0.1) %>%
  plot_scatter_basic() %>%
  plot_overlay(as.bait('BCL2'))
  
p + ggtitle('Example scatter plot')

## End(Not run)

lagelab/Genoppi documentation built on Oct. 13, 2022, 2:36 p.m.