View source: R/betafunctions.R
Beta.gfx.poly.qdf | R Documentation |
Plotting tool, producing a two-column matrix with values of y
corresponding to locations on x
. Useful for shading areas under the curve when tracing the line for the Beta probability quantile functions.
Beta.gfx.poly.qdf(from, to, by, alpha, beta, l = 0, u = 1)
from |
The point of the |
to |
The point of the |
by |
The resolution (or spacing) at which to produce |
alpha |
The alpha shape-parameter value for the Standard Beta probability distribution. |
beta |
The beta shape-parameter for the Standard Beta probability distribution. |
l |
The lower-bound location parameter of the Beta distribution. |
u |
The upper-bound location parameter of the Beta distribution. |
A two-column matrix with quantile-values of y
to plot against corresponding location values of x
.
# To box in an area under a four-parameter Beta quantile distribution with
# location parameters l = .25 and u = 75, and shape parameters alpha = 5 and
# beta = 3, from .4 to .6:
plot(NULL, xlim = c(0, 1), ylim = c(0, 1))
coords <- Beta.gfx.poly.qdf(from = 0.4, to = 0.6, by = 0.001, alpha = 5,
beta = 3, l = 0.25, u = 0.75)
polygon(coords)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.