overlay: Plotting Multiple 'nplr' Objects

Description Usage Arguments Details Source References See Also Examples

Description

To superimpose multiple logistic models fitted using nplr.

Usage

1
  overlay(modelList = NULL, showLegend = TRUE, Cols = NULL, ...)

Arguments

modelList

: list. A list of objects of class nplr.

showLegend

: logical. Whether the legend has to be displayed.

Cols

: character. A vector of colors to use. If NULL (default), greys will be used.

...

: Other graphical parameters. See par.

Details

None

Source

None

References

None

See Also

plot.nplr

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
path <- system.file("extdata", "multicell.tsv", package="nplr")
multicell <- read.delim(path)

# Computing models (to store in a list)
cellsList <- split(multicell, multicell$cell)
Models <- lapply(cellsList, function(tmp){
  nplr(tmp$conc, tmp$resp, silent = TRUE)
  })

# Visualizing
overlay(Models, xlab = expression(Log[10](Conc.)), ylab = "Resp.",
  main="Superimposing multiple curves", cex.main=1.5)

fredcommo/nplr documentation built on May 16, 2019, 2:41 p.m.