autoplot.density | R Documentation |
stats::density
Autoplot stats::density
## S3 method for class '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,
...
)
object |
|
p |
|
colour |
Line colour |
linetype |
Line type |
fill |
Fill colour |
alpha |
Alpha |
xlim |
limits for x axis |
ylim |
limits for y axis |
log |
which variables to log transform ("x", "y", or "xy") |
main |
character vector or expression for plot title |
xlab |
character vector or expression for x axis label |
ylab |
character vector or expression for y axis label |
asp |
the y/x aspect ratio |
... |
other arguments passed to PDC/CDF func |
ggplot
autoplot(stats::density(stats::rnorm(1:50)))
autoplot(stats::density(stats::rnorm(1:50)), fill = 'blue')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.