Learn R Programming

morseTKTD (version 0.1.3)

PlotPredictSurvFit: Plotting method for SurvPredict objects

Description

This is the generic plot S3 method for the SurvPredict class. It plots concentration-response fit under target time survival analysis.

Usage

# S3 method for SurvPredict
plot(
  x,
  xlab = "Time",
  ylab = "Number of Survival",
  main = "Survival Probability with 95% Credible Interval",
  background_concentration = FALSE,
  add_legend = FALSE,
  ...
)

Value

an object of class ggplot, see function ggplot

Arguments

x

an object of class SurvPredict

xlab

argument for the label of the x-axis

ylab

argument for the label of the y-axis

main

argument for the title of the graphic

background_concentration

Binary. If TRUE (default is FALSE), it print the background exposure profile.

add_legend

add legend to the plot, default is FALSE

...

Further arguments to be passed to generic methods