| plot-distributionH | R Documentation |
Plots a distributionH object as a histogram, a cumulative distribution
function, a quantile function, a density or a boxplot.
## S4 method for signature 'distributionH'
plot(x, type = "HISTO", col = "green", border = "black")
x |
A |
type |
The type of plot: |
col |
The fill colour (default |
border |
The colour of the borders (default |
The plot is drawn on the current device and the ggplot object is
returned invisibly, so that it can be further modified, e.g.
p <- plot(mydist); p + ggplot2::theme_bw().
mydist <- distributionH(x = c(7, 8, 10, 15), p = c(0, 0.2, 0.7, 1))
plot(mydist)
plot(mydist, type = "HISTO", col = "red", border = "blue")
plot(mydist, type = "DENS", col = "red", border = "blue")
plot(mydist, type = "HBOXPLOT")
plot(mydist, type = "VBOXPLOT")
plot(mydist, type = "CDF")
plot(mydist, type = "QF")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.