plot_RatiosPG: Plot ratios of labeled data (e.g. SILAC) from...

View source: R/fcn_plots.R

plot_RatiosPGR Documentation

Plot ratios of labeled data (e.g. SILAC) from proteinGroups.txt

Description

The 'x' values are expected to be log2() transformed already.

Usage

plot_RatiosPG(df_ratios, d_range, main_title, main_col, legend_title)

Arguments

df_ratios

A data.frame with columns 'x', 'y', 'col', 'ltype'

d_range

X-axis range of plot

main_title

Plot title

main_col

Color of title

legend_title

Legend text

Value

GGplot object

Examples


 x1 = seq(-3, 3, by = 0.1)
 y1 = dnorm(x1)
 x2 = seq(-5, 1, by = 0.1)
 y2 = dnorm(x2, mean = -1)
 data = data.frame( x = c(x1,x2),
                    y = c(y1,y2), 
                    col = c(rep("ok", length(x1)), rep("shifted", length(x2))), 
                    ltype = c(rep("solid", length(x1)), rep("dotted", length(x2))))
 plot_RatiosPG(data, range(data$x), "Ratio plot", "red", "group")


PTXQC documentation built on May 29, 2024, 9:26 a.m.