rp.tables {rpanel} | R Documentation

## Interactive statistical tables

### Description

This function launches a panel which allows standard normal, t, chi-squared and F distributions to be plotted, with interactive control of parameters, tail probability and p-value calculations.

### Usage

      rp.tables(panel = TRUE, panel.plot = TRUE, hscale = NA, vscale = hscale,
                distribution = "normal", degf1 = 5, degf2 = 30,
                observed.value = " ", observed.value.showing = !is.na(observed.value),
                probability = 0.05, tail.probability, tail.direction, heading)

### Arguments

`panel` | a logical parameter which determines whether interactive controls are provided or a simple static plot is produced.
`panel.plot` | a logical parameter which determines whether the plot is placed inside the panel (TRUE) or the standard graphics window (FALSE). If the plot is to be placed inside the panel then the tkrplot package is required.
`hscale, vscale` | horizontal and vertical scaling factors for the size of the plot when `panel.plot` is set to `TRUE`. It can be useful to adjust these for projection on a screen, for example. The default values are 1 on Unix platforms and 1.4 on Windows platforms.
`distribution` | a character string which determines which distribution is to be plotted. Current options are "normal" (deault), "t", "chi-squared" and "F".
`degf1, degf2` | The degrees of freedom used for the chi-squared (`degf1`) and F (`degf1`, `degf2`) distributions.
`observed.value` | a numerical value, or a character string which will be converted by `as.numeric`, which identifies an observed value whose location within the distribution is of interest.
`observed.value.showing` | a logical value which determines whether the observed value (if any) is displayed on the plot.
`probability` | the value of the tail probability used when tail area is shaded.
`tail.probability` | a character string which determines whether the tail area is drawn from the observed value (`"from observed value"`), using a fixed probability (`"fixed probability"`) or not shown (`"none"`).
`tail.direction` | a character string which determines whether the lower (`"lower"`), upper (`"upper"`) or two-sided (`"two-sided"`) tail area is drawn.
`heading` | a character string which will appear as a heading of the plot. If this is missing, a heading based on the selected distribution will be created.

### Details

The panel contains radiobuttons to select the standard normal, t, chi-squared or F distributions. Doublebutton are available to control the degrees of freedom. An observed value can be added to the plot, with optional determination of the corresponding p-value. Alternatively, shaded areas corresponding to tail probabilities of specified value can be displayed.

### Value

Nothing is returned.

### References

rpanel: Simple interactive controls for R functions using the tcltk package. Journal of Statistical Software, 17, issue 9.

### Examples

    ## Not run:
      rp.tables()

    ## End(Not run)

[Package rpanel version 1.1-4 Index]