Last chance! 50% off unlimited learning
Sale ends in
stats::density
Autoplot stats::density
# S3 method for density
autoplot(object, p = NULL, colour = "#000000",
linetype = NULL, fill = NULL, alpha = NULL, xlim = c(NA, NA),
ylim = c(NA, NA), log = "", main = NULL, xlab = NULL, ylab = NULL,
asp = NULL, ...)
stats::density
instance
ggplot2::ggplot
instance to plot
Line colour
Line type
Fill colour
Alpha
limits for x axis
limits for y axis
which variables to log transform ("x", "y", or "xy")
character vector or expression for plot title
character vector or expression for x axis label
character vector or expression for y axis label
the y/x aspect ratio
other arguments passed to PDC/CDF func
ggplot
# NOT RUN {
autoplot(stats::density(stats::rnorm(1:50)))
autoplot(stats::density(stats::rnorm(1:50)), fill = 'blue')
# }
Run the code above in your browser using DataLab