Learn R Programming

weibulltools (version 0.5.4)

plot_layout: Layout of the Probability Plot

Description

This function is used to create the layout of a probability plot.

Usage

plot_layout(x, distribution = c("weibull", "lognormal", "loglogistic"),
  title_main = "Probability Plot", title_x = "Characteristic",
  title_y = "Unreliability")

Arguments

x

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

distribution

supposed distribution of the random variable. Can be "weibull", "lognormal" or "loglogistic". Other distributions have not been implemented yet.

title_main

a character string which is assigned to the main title of the plot.

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.

Value

Returns a plotly object which contains the layout that is used for probability plotting.

Examples

Run this code
# NOT RUN {
x_layout <- seq(1e-5, 1e+07, length.out = 10)
grid_weibull <- plot_layout(x = x_layout,
                            distribution = "weibull",
                            title_main = "Weibull Analysis",
                            title_x = "Time to Failure",
                            title_y = "Failure Probability in %")
# }

Run the code above in your browser using DataLab