plot.survFitPredict_Nsurv: Plotting method for 'survFitPredict_Nsurv' objects.

Description Usage Arguments Details

View source: R/plot.survFitPredict_Nsurv.R

Description

This is the generic plot S3 method for the survFitPredict_Nsurv. It plots the predicted survival rate for each concentration of the chemical compound in the provided dataset.

Usage

1
2
3
4
## S3 method for class 'survFitPredict_Nsurv'
plot(x, xlab = "Time",
  ylab = "Number of survivors", main = NULL, spaghetti = FALSE,
  one.plot = FALSE, mcmc_size = NULL, ...)

Arguments

x

An object of class survFitPredict_Nsurv.

xlab

A label for the X-axis, by default Time.

ylab

A label for the Y-axis, by default Survival rate.

main

A main title for the plot.

spaghetti

If TRUE, draws a set of survival curves using parameters drawn from the posterior distribution

one.plot

if TRUE, draws all the estimated curves in one plot instead of one plot per concentration.

mcmc_size

A numerical value refering by default to the size of the mcmc in object survFitPredict. This option is specific to survFitPredict objects for which computing time may be long. mcmc_size can be used to reduce the number of mcmc samples in order to speed up the computation.

...

Further arguments to be passed to generic methods.

Details

The fitted curves represent the predicted survival rate as a function of time for each concentration. The function plots both the 95% credible band and the predicted survival rate over time. If spaghetti = TRUE, the credible intervals are represented by two dotted lines limiting the credible band, and a spaghetti plot is added to this band. This spaghetti plot consists of the representation of simulated curves using parameter values sampled in the posterior distribution (10% of the MCMC chains are randomly taken for this sample).


morse documentation built on May 1, 2019, 7:38 p.m.