plotCurve.one: plot a single fit of degradation or synthesis curve

Description Usage Arguments Value Note Examples

Description

plot a single fit of degradation or synthesis curve

Usage

1
2
plotCurve.one(x, t, tcc = Inf, col = "red", curve = NULL, pch = 20,
  lty = 1, err.lwd = 2, main = "")

Arguments

x

an object returned by fitSynNLS or fitDegNLS with vector input

t

time points

tcc

cell doubling time

col

color, passed to plot

curve

what type of curve fit, if is not null, should be either "degradation" or "synthesis"

pch

passed to plot

lty

passed to plot

err.lwd

the line width of error bars

main

main title, passed to plot

Value

a plot generated, returns nothing

Note

This function won't work if input of fitSynNLS or fitDegNLS is a one row matrix

Examples

1
2
3
4
5
  tp <- c(0, 1, 2, 4, 8, 16, 32, 64)
  ratios <- degCurve(A=0.85, B = 0.1, kd=0.5, tcc=Inf, t = tp) + rnorm(length(tp), sd = 0.05)
  # vector input
  r <- fitDegNLS(ratios, t = tp, tcc = Inf)
  plotCurve.one(r, tp)

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