Interactive QQ Vase Plot

Share:

Description

This function displays animated normal quantile-quantile plots. The software uses Shiny to open a window in the default installed web browser. Graphical controls in that window manipulate the construction of normal quantile plots. The display shows QQ plots for comparing either population distributions or samples of a chosen size. When samples are shown, the plot includes approximate 95

Usage

1
2
qq_vase_plot(draw.samples = TRUE, dists = make_df_list(), step = 0.05,
  breaks = "FD")

Arguments

draw.samples

Set to true to allow optional samples from distributions

dists

Named list of (d=density, q=quantile, r=sample) distributions (see make_df_list())

step

Stepsize used for animated slider (use larger values if animating with play button)

breaks

Passed to R histogram program to control number of bins in empirical distribution

Value

None

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
# default
qq_vase_plot()

# suppress sampling option
qq_vase_plot(FALSE)

# add uniform distribution to dialog
dists <- make_df_list()
dists[["uniform"]] <- list(d=dunif, q=qunif, r=runif)
qq_vase_plot(TRUE, dists)

# smaller increments, change the method that determines breaks in histogram
qq_vase_plot(TRUE, step=0.01, breaks=function(x) 2*sqrt(length(x)))

## End(Not run)