powered by
hist_compare_to_normal
hist_compare_to_normal( x, col = "lightgray", main = "", xlab = "", ylab = "", lwd_line = 1.5, col_line1 = "#ff160e", col_line2 = "#335bff", add_legend = TRUE, legend_position = "topleft", delta = 0.2, ... )
No return value. Plot a histogram.
data vector to be visualized.
color of the histogram.
string indicating the title of the plot.
a string indicating the x label.
a string indicating the y label.
width of density lines.
color of density line classic mle estimation.
color of density line classic robust estimation.
a Boolean if the estimated parameters of the Normal distribution should be plotted.
a string specifying the position of the legend.
graphic parameter to determine the shrinkage of the axis.
Extra graphical arguments.
n <- 1000 x <- rnorm(n = n) hist_compare_to_normal(x) x2 <- rexp(n, rate = 25) hist_compare_to_normal(x2, legend_position = "topright")
Run the code above in your browser using DataLab