Learn R Programming

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

TeachingDemos (version 2.7)

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.7

License

Artistic-2.0

Maintainer

Greg Snow

Last Published

August 9th, 2010

Functions in TeachingDemos (2.7)

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
outliers

Outliers data
cnvrt.coords

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

Create a quick dotchart (histogram)
rotate.cloud

Interactively rotate 3D plots
faces

Chernoff Faces
mle.demo

Demonstrate the basic concept of Maximum Likelihood Estimation
txtStart

Save a transcript of commands and/or output to a text file.
SensSpec.demo

Demonstrate Sensitivity, Specificity, PPV, and NPV
slider

slider / button control widgets
vis.boxcox

Interactively visualize Box-Cox transformations
char2seed

Convert a character string into a random seed
rgl.Map

Plot a map in an rgl window
bct

Box-Cox Transforms
triplot

Create or add to a Trilinear Plot
pairs2

Create part of a scatterplot matrix
run.hist.demo

Create a histogram and interactively change the number of bars.
panel.my.symbols

Draw Symbols (User Defined) on a Lattice Plot
squishplot

Squish the plotting area to a specified aspect ratio
SnowsCorrectlySizedButOtherwiseUselessTestOfAnything

Snow's Correctly Sized But Otherwise Useless Test of Anything
TeachingDemos-package

Various functions for demonstration and learning.
col2grey

Convert colors to grey/grayscale
plot.rgl.coin

Animated die roll or coin flip
vis.binom

Plot various distributions then interactivly adjust the parameters.
SnowsPenultimateNormalityTest

Test the uninteresting question of whether the data represents an exact normal distribution.
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.
z.test

Z test for known population standard deviation
tkexamp

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

Create a Tk slider window
lattice.demo

Interactively explore the conditioned panels in lattice plots.
updateusr

Updates the 'usr' coordinates in the current plot.
run.cor.examp

Interactively demonstrate correlations
power.examp

Graphically illustrate the concept of power.
spread.labs

Spread out close points for labeling in plots
project.Map

Apply projections to Map objects (from maptools package)
zoomplot

Zoom or unzoom an existing plot in the plot window
TkApprox

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

Change the Color and Styles of points interactively
evap

Data on soil evaporation.
faces2

Chernoff Faces
clipplot

Clip plotting to a rectangular region
ci.examp

Plot examples of Confidence Intervals
plot2script

Create a script from the current plot
put.points.demo

Demonstrate Correlation and Regression by placing and moving data points
dynIdentify

Interacively place labels for points in a plot
sigma.test

One sample Chi-square test for a population variance
towork

Sample data downloaded and converted from a GPS unit
my.symbols

Draw Symbols (User Defined) on a Plot
dice

Simulate rolling dice
hpd

Compute Highest Posterior Density Intervals
state.vbm

Map object for the US State Visibility Based Map
limits.g

Functions to plot Shewhart g chart
shadowtext

Add text to a plot with a contrasting background.
Pvalue.norm.sim

Simulate P-values
identify.Map

Identify polygons within a plotted map from the maptools packages.
stork

Neyman's Stork data
roc.demo

Demonstrate ROC curves by interactively building one
gp.open

Alpha version functions to send plotting commands to GnuPlot
vis.test

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

Interactivly view structures of list and list like objects.
chisq.detail

Print details of a chi-squared test
fagan.plot

Create a Fagan plot to demonstrate Bayes Theorem and screening tests
%<%

Less than or Less than and equal operators that can be chained together.
ms.polygram

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

Recenter a Map object from the maptools package.
subplot

Embed a new plot within an existing plot
tree.demo

Interactively demonstrate regression trees
HWidentify

Show label for point being Hovered over.
coin.faces

Designs for coin faces for use with plot.rgl.coin
clt.examp

Plot Examples of the Central Limit Theorem