Learn R Programming

morseTKTD (version 0.1.3)

PlotLPxt: Plot of the LPxt object

Description

Method for plotting output of loxt function returning object of class LPxt.

Usage

# S3 method for LPxt
plot(
  x,
  plot = "curve",
  xlab = "Time",
  ylab = "Survival probability",
  main = NULL,
  ...
)

Value

an object of class ggplot, see function ggplot

Arguments

x

an object of class LPxt

plot

style of the plot (default is curve)

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

...

Further arguments to be passed to generic methods