# NOT RUN {
## Build a 4-parameters Weibull distribution with given parameters
weibull4.build(seq(1,100,1), shape=2.5, scale=30, loc=10, area=1000, modes=1)
## Build and plot 4-parameters Weibull distribution with given parameters
plot(seq(1,100,1), weibull4.build(seq(1,100,1), 2, 30, 10, 1), type="l")
## Build and plot 4-parameters Weibull distribution with a time series in the abscissa
Date <- seq(Sys.Date(), as.Date("2022-12-31"),1)
plot(Date, weibull4.build(Date, 1.6, 100, 100, 100), type="l")
## Build and plot a bimodal, 4-parameters Weibull distribution with given parameters
weibull4.build(seq(1,100,1), shape=2.5, scale=30, loc=10, area=1000,
shape2=2.5, scale2=60, loc2=40, area2=1000, modes=2)
# }
Run the code above in your browser using DataLab