[This article was first published on Rsquared Academy Blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)Want to share your content on R-bloggers? click here if you have a blog, or here if you don't. vistributions 0.2.2vistributions draws the probability and percentile questions you ask of the normal, t, chi-square, F and binomial distributions, with the answer printed on the plot.Version 0.2.2 is a correctness release. What the plot shades and what its caption prints now agree with the exact probability, and inputs that cannot describe an event stop with a clear message. If you use the binomial functions to size an event, read the first section.Install from CRANCodeinstall.packages("vistributions")The full list of changes is in the release notes.Shading follows the eventA trial cohort has 40 users, and about 25% of trial users usually upgrade. How likely is it that exactly 10 of them upgrade?Codevdist_binom_prob(n = 40, p = 0.25, s = 10, type = "exact")The exact value, from base R:Codedbinom(10, size = 40, prob = 0.25)[1] 0.1443643The caption and the shaded bar match this value. The change matters most for large n, where bars are grouped. A grouped bar that crossed the cutoff was painted whole: for n = 10000, p = 0.01 and s = 100, the shaded area was 19.26% for an event whose exact probability is 4.01% (release notes). Every event cutoff is now a bar edge, so the shaded bar heights add up to dbinom() or pbinom() for the event.Inputs that cannot be an eventA count of successes has to lie between 0 and the number of trials. Asking for a negative count used to be accepted, with the caption P(X)