plotCurve: plot protein degration/synthesis curve

Description Usage Arguments Value Examples

Description

plot protein degration/synthesis curve with origin data point and fitted curve

Usage

1
2
3
plotCurve(x, t, tcc, A, B, k, add = TRUE, col = "red", lineOnly = FALSE,
  curve = c("degradation", "synthesis")[1], pch = 20, lty = 1,
  ylim = NULL, err.x = NULL, err.y = NULL, err.lwd = 2, main = "")

Arguments

x

The data point, ratio, if lineOnly=TRUE, this argument is ignored

t

time points (hours)

tcc

doubling time of cell lines

A

model parameter A (amplitude), see details

B

model parameter B (offset), see details.

k

model parameter kd (degradation constant) or sd (synthesis constant), see details.

add

if the plot should be added on top of another plot

col

The color of line

lineOnly

logical, whether only draw the fitted line, ie. the input data point is ignored

curve

which curve want to draw, should be either "degradation" or "synthesis"

pch

passed to plot

lty

passed to line

ylim

passed to plot

err.x

draw error bar

err.y

draw error bar

err.lwd

the line width of error bars

main

the main title of plot

Value

no value to be returned

Examples

1
2
3
4
5
6
7
 times <- 2^(0:6)
 drat <- degCurve(A = 1, B = 0, kd = 0.05, tcc = Inf, times)
 drat <- drat + rnorm(length(times), sd = 0.2)
 plot(times, drat)
 plotCurve(drat, t = times, tcc = Inf, A = 1, B = 0, k = 0.05, add=FALSE, col="red",
       lineOnly = FALSE, curve = "degradation", ylim = NULL,
       err.x = c(11, 20), err.y = 0.5, main = "toy curve fitting")

mengchen18/proturn documentation built on May 30, 2019, 4:37 p.m.