Learn R Programming

⚠️There's a newer version (2.13) of this package.Take me there.

TeachingDemos (version 2.8)

Demonstrations for teaching and learning

Description

This package is a set of demonstration functions that can be used in a classroom to demonstrate statistical concepts, or on your own to better understand the concepts or the programming.

Copy Link

Version

Install

install.packages('TeachingDemos')

Monthly Downloads

10,035

Version

2.8

License

Artistic-2.0

Maintainer

Greg Snow

Last Published

March 16th, 2012

Functions in TeachingDemos (2.8)

towork

Sample data downloaded and converted from a GPS unit
TkApprox

Plot a set of data in a Tk window and interactively move lines to see predicted y-values corresponding to selected x-values.
run.cor.examp

Interactively demonstrate correlations
TkPredict

Plot predicted values from a model against one of the predictors for a given value of the othe predictors
loess.demo

Demonstrate the internals of loess curve fits
shadowtext

Add text to a plot with a contrasting background.
evap

Data on soil evaporation.
faces2

Chernoff Faces
zoomplot

Zoom or unzoom an existing plot in the plot window
dice

Simulate rolling dice
limits.g

Functions to plot Shewhart g chart
sliderv

Create a Tk slider window
clipplot

Clip plotting to a rectangular region
pairs2

Create part of a scatterplot matrix
ms.polygram

Symbol functions/data to be passed as symb argument to my.symbols
HWidentify

Show label for point being Hovered over.
z.test

Z test for known population standard deviation
tkBrush

Change the Color and Styles of points interactively
SensSpec.demo

Demonstrate Sensitivity, Specificity, PPV, and NPV
fagan.plot

Create a Fagan plot to demonstrate Bayes Theorem and screening tests
txtStart

Save a transcript of commands and/or output to a text file.
%<%

Less than or Less than and equal operators that can be chained together.
chisq.detail

Print details of a chi-squared test
put.points.demo

Demonstrate Correlation and Regression by placing and moving data points
gp.open

Alpha version functions to send plotting commands to GnuPlot
SnowsPenultimateNormalityTest

Test the uninteresting question of whether the data represents an exact normal distribution.
lattice.demo

Interactively explore the conditioned panels in lattice plots.
triplot

Create or add to a Trilinear Plot
bct

Box-Cox Transforms
spread.labs

Spread out close points for labeling in plots
hpd

Compute Highest Posterior Density Intervals
TkListView

Interactivly view structures of list and list like objects.
run.hist.demo

Create a histogram and interactively change the number of bars.
squishplot

Squish the plotting area to a specified aspect ratio
tkexamp

Create Tk dialog boxes with controls to show examples of changing parameters on a graph.
cnvrt.coords

Convert between the 5 different coordinate sytems on a graphical device
col2grey

Convert colors to grey/grayscale
rotate.cloud

Interactively rotate 3D plots
sigma.test

One sample Chi-square test for a population variance
dots

Create a quick dotchart (histogram)
vis.test

Do a Visual test of a null hypothesis by choosing the graph that does not belong.
stork

Neyman's Stork data
vis.boxcox

Interactively visualize Box-Cox transformations
clt.examp

Plot Examples of the Central Limit Theorem
char2seed

Convert a character string into a random seed
outliers

Outliers data
TkBuildDist

Interactively create a probability distribution.
power.examp

Graphically illustrate the concept of power.
rgl.Map

Plot a map in an rgl window
plot2script

Create a script from the current plot
dynIdentify

Interacively place labels for points in a plot
plot.rgl.coin

Animated die roll or coin flip
Pvalue.norm.sim

Simulate P-values
coin.faces

Designs for coin faces for use with plot.rgl.coin
mle.demo

Demonstrate the basic concept of Maximum Likelihood Estimation
cal

Plot a month or year calendar
roc.demo

Demonstrate ROC curves by interactively building one
subplot

Embed a new plot within an existing plot
SnowsCorrectlySizedButOtherwiseUselessTestOfAnything

Snow's Correctly Sized But Otherwise Useless Test of Anything
my.symbols

Draw Symbols (User Defined) on a Plot
panel.my.symbols

Draw Symbols (User Defined) on a Lattice Plot
tree.demo

Interactively demonstrate regression trees
slider

slider / button control widgets
ci.examp

Plot examples of Confidence Intervals
faces

Chernoff Faces
vis.binom

Plot various distributions then interactivly adjust the parameters.
TkSpline

Plot a set of data in a Tk window and interactively move a line to see predicted y-values from a spline fit corresponding to selected x-values.
petals

Play the Petals Around the Rose game
ldsgrowth

Growth of The Church of Jesus Christ of Latter-day Saints.
updateusr

Updates the 'usr' coordinates in the current plot.
TeachingDemos-package

Various functions for demonstration and learning.