Plot a distribution
## S3 method for class 'distribution' autoplot( x, type = c("pdf", "cdf"), n = 100, quantile_range = c(0.001, 0.999), ... )
x |
The distribution(s) to plot. |
type |
The type of plot to make (must be either |
n |
The resolution (number of points) used to display the distribution. |
quantile_range |
The range of the distribution (specified as quantiles). |
... |
Unused. |
library(ggplot2) dist <- c(dist_normal(mu = 0, sigma = 1), dist_student_t(df = 3)) autoplot(dist, type = "pdf") autoplot(dist, type = "cdf")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.