This function helps to plot density estimates created by the histSmo() function.
histSmo_plot(x, col_fill_bar = gray(0.5), col_bar = "pink",
col_line = "darkblue", width_line = 1, title, xlabel)A plot
a histSmo object
The fill colour of the bars
the colour of the border of thebars
the colour of the lines
the width of the lines
title if needed
x axis lable if needed.
Mikis Stasinopulos, Rober Rigby and Fernanda de Bastiani
This function supports histSmo().
Rigby, R. A., Stasinopoulos, D. M., Heller, G. Z., and De Bastiani, F. (2019) Distributions for modeling location, scale, and shape: Using GAMLSS in R, Chapman and Hall/CRC. An older version can be found in https://www.gamlss.com/.
Stasinopoulos D. M. Rigby R.A. (2007) Generalized additive models for location scale and shape (GAMLSS) in R. Journal of Statistical Software, Vol. 23, Issue 7, Dec 2007, https://www.jstatsoft.org/v23/i07/.
Stasinopoulos D. M., Rigby R.A., Heller G., Voudouris V., and De Bastiani F., (2017) Flexible Regression and Smoothing: Using GAMLSS in R, Chapman and Hall/CRC.
Stasinopoulos, M.D., Kneib, T., Klein, N., Mayr, A. and Heller, G.Z., (2024). Generalized Additive Models for Location, Scale and Shape: A Distributional Regression Approach, with Applications (Vol. 56). Cambridge University Press.
(see also https://www.gamlss.com/).
histSmo
a1 <-histSmo(abdom$y)
gg1 <-histSmo_plot(a1)
gg1
Run the code above in your browser using DataLab