plot_pmf | R Documentation |
Plot Probability Mass Function Values
plot_pmf(x, y, ..., col = "grey", add = FALSE)
x |
values |
y |
probability mass values |
... |
passed to |
col |
Fill color of bars. |
add |
Add bars to existing plot. Plots the probability values as a barplot. |
No return value, this function generates a plot in the current graphics device.
x <- seq(0, 5)
y <- dpois(x, lambda = 2)
plot_pmf(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.