adjWeibull: Adjust (fit) three-parameter Weibull distribution

View source: R/dendrometry.R

adjWeibullR Documentation

Adjust (fit) three-parameter Weibull distribution

Description

Adjust (fit) three-parameter Weibull distribution

Usage

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 (%)", ...)

Arguments

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 xy.coords. To be used to position the legend. Default is "topright".

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 fitWeibull for details.

cex.axis, cex.lab, las

graphical parameters. See par.

xlab, ylab

title for the x and y axis.

...

additional arguments to pass through plot.

Examples

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

dendrometry documentation built on June 8, 2025, 10:38 a.m.