pmf | R Documentation |
This function produces a simple plot of the probability mass function of a discrete variable
pmf(x, absolute = T, xlim = NULL, lwd = 1, col = "black", title = NULL, xlab = "x", bty = "l", cex.title = NULL, cex.axis = NULL)
x |
the (discrete) variable of interest |
absolute |
logical. If |
xlim |
limits for the x axis |
lwd |
line width |
col |
color used for the vertical frequency bars |
title |
plot title |
xlab |
label for the x axis |
bty |
box type (default is |
cex.title |
title font size |
cex.axis |
font size for the axes |
Mirko Signorelli
pmf(cars$speed) pmf(cars$speed, absolute = FALSE) pmf(cars$speed, lwd = 2, col = 'blue')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.