powered by
addnorm creates a histogram of x and overlays a normal density function.
addnorm
x
iscamaddnorm( x, main = "Histogram with normal curve", xlab = deparse(substitute(x)), bins = NULL )
A histogram of x overlayed with an normal density function.
A numeric vector representing the data to be plotted.
Optional title for the plot
Optional x-axis label for the plot
Optional number of bins for the histogram.
set.seed(0) x <- rnorm(100) iscamaddnorm(x) iscamaddnorm(x, main = "Your Active Title", xlab = "Normal Data", bins = 20)
Run the code above in your browser using DataLab