Learn R Programming

longevity (version 1.2.1)

plot.elife_tstab_endpoint: Plot threshold stability plot for endpoint

Description

Plot threshold stability plot for endpoint

Usage

# S3 method for elife_tstab_endpoint
plot(x, plot.type = c("base", "ggplot"), plot = TRUE, ...)

Value

base R or ggplot object for a plot of the profile log likelihood of the endpoint of the generalized Pareto distribution

Arguments

x

an object of class elife_tstab_endpoint containing information about the profile likelihood, maximum likelihood and grid of values for the endpoint

plot.type

string indicating whether to use base R for plots or ggplot2

plot

logical; if TRUE, creates a plot when plot.type="ggplot". Useful for returning ggplot objects without printing the graphs

...

additional arguments to pass to plot, currently ignored