plot_layout: Layout of the Probability Plot

View source: R/plot_functions.R

plot_layoutR Documentation

Layout of the Probability Plot

Description

This function is used to create the layout of a probability plot. It is called inside of plot_prob to determine the appearance of the grid with respect to the given characteristic x.

Usage

plot_layout(
  x,
  y = NULL,
  distribution = c("weibull", "lognormal", "loglogistic", "sev", "normal", "logistic",
    "exponential"),
  title_main = "Probability Plot",
  title_x = "Characteristic",
  title_y = "Unreliability",
  plot_method = c("plotly", "ggplot2")
)

Arguments

x

A numeric vector which consists of lifetime data. x is used to specify the grid of the plot.

y

Optional argument. If used, it is a numeric vector which consists of failure probabilities with respect to x.

distribution

Supposed distribution of the random variable.

title_main

A character string which is assigned to the main title.

title_x

A character string which is assigned to the title of the x axis.

title_y

A character string which is assigned to the title of the y axis.

plot_method

Package, which is used for generating the plot output.

Value

A plot object containing the layout of the probability plot.


weibulltools documentation built on April 5, 2023, 5:10 p.m.