adjWeibull | R Documentation |
Adjust (fit) three-parameter Weibull distribution
adjWeibull(x, amplitude = 10, shape = 2, plot = TRUE, main = NULL,
title.col = "black", mid = TRUE, line.col = "blue", legendPos = "topright",
lowLim = NULL, ymax = NULL, bg = "aliceblue", method = "mps", cex.axis = 0.6,
cex.lab = 0.8, las = 1, xlab = "Diameter class (cm)",
ylab = "Relative frequency (%)", ...)
x |
numeric, vector of observations. |
amplitude |
numeric, amplitude of classes. |
shape |
numeric, optional initial values of shape for starting the iterative procedures such as Newton-Raphson. |
plot |
logical. Should plot? |
main |
character, overall title for the plot. |
title.col , line.col |
the color to be used for the overall title and the plot line plot respectively. Default are "blue" and "black". |
mid |
logical. Should the line stop at the first and last classes middle? |
legendPos |
character, keyword which is accepted by
|
lowLim , ymax |
numeric, xlim and ylim lowest values. |
bg |
the color to be used for the background of the legend box. |
method |
used method for estimating the three-parameter Weibull
distribution. See |
cex.axis , cex.lab , las |
graphical parameters.
See |
xlab , ylab |
title for the x and y axis. |
... |
additional arguments to pass through |
set.seed(2)
d <- rweibull(85, shape = 1, scale = 30) + 5
res <- adjWeibull(d,
amplitude = 10, mid = FALSE, shape = 3, ymax = 30,
main = "Weibull adjustment", line.col = "red", legendPos = "right",
method = "mps"
)
res
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.