
79Random Variables, Distributions, Moments, and Statistics
to obtain Figure 3.18a. Here, we have also used main = “” to print blank as the main title.
You will often have to make a decision on the best number of intervals to use according to the
trade-off between smoothness and detail. Also, you can establish the maximum value to scale the
y-axis with ylim = c(y1,y2) in the following manner:
>hist(x, nclass=10, prob=T, ylim=c(0,0.06), main=“”)
The maximum value on the y-axis will be set to 0.06, the minimum at 0.00 (Figure 3.18b). The
subsequent command to plot will use this maximum value and therefore you may have to reset it.
To get a summary of ...