May 2019
Beginner to intermediate
266 pages
5h 57m
English
The pnorm() function follows the same constraint, the only difference being that the function generates random numbers with reference to a cumulative density function. We can demonstrate the pnorm() function by executing the following command:
> p2 <- ggplot(data = Iris, aes(PetalWidthCm)) ++ stat_function(fun = pnorm, n = 101, args = list(mean = 0, sd = 1)) + ylab("") ++ scale_y_continuous(breaks = NULL)> p2
From this command, we get the following plot:

Read now
Unlock full access