character. Name of variable of the dataframe for which the distribution should be plotted.
binwidth
numeric. Determine the width of the bins to use, only applied in combination with "histogram". Default is 30 bins.
type
character. Determine which plot to return: "histogram" for a histogram, "density" for a density plot. Default is "histogram".
dist
character or vector of character. Determine which distribution to fit on the density plot.
user_dist
character string. User-defined distribution to fit. Default value is NULL.
user_param_1
character string. First parameter of the user-defined distribution to fit.
user_param_2
character string. Second parameter of the user-defined distribution to fit.
user_mean
numeric value. mean value to plot on the graph. Default is NULL
Details
The available distributions are: "norm" (normal), "beta", "gamma", "lnorm" (lognormal). TO CHECK --> ask for mean and SD/SE for the user-defined distribution???
# Generating histogram for the costs of progression-free health state, bins of 50 eurosdata(df_pa)
vis_1_param(df = df_pa, param = "c_pfs", binwidth = 50)