powered by
Similar to calling ClevelandDotPlot with sort = 0 on a numerical x variable that takes on a discrete set of values.
ClevelandDotPlot
sort = 0
DiscreteDistribution(frm, xvar, title, ..., stem = TRUE, color = "black")
data frame to get values from
numeric: name of the variable whose distribution is to be plotted
title to place on plot
no unnamed argument, added to force named binding of later arguments.
if TRUE add whisker/stems to plot
color of points and stems
frmx = data.frame(x = rbinom(1000, 20, 0.5)) WVPlots::DiscreteDistribution(frmx, "x","Discrete example")
Run the code above in your browser using DataLab