hist_compare_to_normal {idarps}R Documentation

hist_compare_to_normal

Description

hist_compare_to_normal

Usage

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,
  ...
)

Arguments

x

data vector to be visualized.

col

color of the histogram.

main

string indicating the title of the plot.

xlab

a string indicating the x label.

ylab

a string indicating the y label.

lwd_line

width of density lines.

col_line1

color of density line classic mle estimation.

col_line2

color of density line classic robust estimation.

add_legend

a Boolean if the estimated parameters of the Normal distribution should be plotted.

legend_position

a string specifying the position of the legend.

delta

graphic parameter to determine the shrinkage of the axis.

...

Extra graphical arguments.

Value

No return value. Plot a histogram.

Examples

n <- 1000
x <- rnorm(n = n)
hist_compare_to_normal(x)
x2 <- rexp(n, rate = 25)
hist_compare_to_normal(x2, legend_position = "topright")

[Package idarps version 0.0.4 Index]