overlay {nplr}R Documentation

Plotting Multiple nplr Objects

Description

To superimpose multiple logistic models fitted using nplr.

Usage

  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


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)


[Package nplr version 0.1-7 Index]