TeachingDemos v2.10


Monthly downloads



by Greg Snow

Demonstrations for Teaching and Learning

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.

Functions in TeachingDemos

Name Description
SensSpec.demo Demonstrate Sensitivity, Specificity, PPV, and NPV
TkBuildDist Interactively create a probability distribution.
cor.rect.plot Plot a visualization of the correlation using colored rectangles
faces2 Chernoff Faces
ldsgrowth Growth of The Church of Jesus Christ of Latter-day Saints.
chisq.detail Print details of a chi-squared test
TkApprox Plot a set of data in a Tk window and interactively move lines to see predicted y-values corresponding to selected x-values.
txtStart Save a transcript of commands and/or output to a text file.
rgl.coin Animated die roll or coin flip
towork Sample data downloaded and converted from a GPS unit
plot2script Create a script from the current plot
cnvrt.coords Convert between the 5 different coordinate sytems on a graphical device
power.examp Graphically illustrate the concept of power.
SnowsPenultimateNormalityTest Test the uninteresting question of whether the data represents an exact normal distribution.
petals Play the Petals Around the Rose game
simfun Create a function to simulate data
stork Neyman's Stork data
cal Plot a month or year calendar
gp.open Alpha version functions to send plotting commands to GnuPlot
squishplot Squish the plotting area to a specified aspect ratio
evap Data on soil evaporation.
spread.labs Spread out close points for labeling in plots
sliderv Create a Tk slider window
my.symbols Draw Symbols (User Defined) on a Plot
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.
clt.examp Plot Examples of the Central Limit Theorem
subplot Embed a new plot within an existing plot
panel.my.symbols Draw Symbols (User Defined) on a Lattice Plot
dice Simulate rolling dice
%<% Less than or Less than and equal operators that can be chained together.
fagan.plot Create a Fagan plot to demonstrate Bayes Theorem and screening tests
mle.demo Demonstrate the basic concept of Maximum Likelihood Estimation
triplot Create or add to a Trilinear Plot
loess.demo Demonstrate the internals of loess curve fits
vis.test Do a Visual test of a null hypothesis by choosing the graph that does not belong.
vis.binom Plot various distributions then interactivly adjust the parameters.
SnowsCorrectlySizedButOtherwiseUselessTestOfAnything Snow's Correctly Sized But Otherwise Useless Test of Anything
zoomplot Zoom or unzoom an existing plot in the plot window
outliers Outliers data
pairs2 Create part of a scatterplot matrix
rgl.Map Plot a map in an rgl window
faces Chernoff Faces
TeachingDemos-package Various functions for demonstration and learning.
z.test Z test for known population standard deviation
roc.demo Demonstrate ROC curves by interactively building one
updateusr Updates the 'usr' coordinates in the current plot.
TkPredict Plot predicted values from a model against one of the predictors for a given value of the othe predictors
sigma.test One sample Chi-square test for a population variance
coin.faces Designs for coin faces for use with plot.rgl.coin
tkBrush Change the Color and Styles of points interactively
TkListView Interactivly view structures of list and list like objects.
col2grey Convert colors to grey/grayscale
Pvalue.norm.sim Simulate P-values
digits Return the digits that make up an integer
ci.examp Plot examples of Confidence Intervals
tree.demo Interactively demonstrate regression trees
bct Box-Cox Transforms
ms.polygram Symbol functions/data to be passed as symb argument to my.symbols
shadowtext Add text to a plot with a contrasting background.
vis.boxcox Interactively visualize Box-Cox transformations
put.points.demo Demonstrate Correlation and Regression by placing and moving data points
rotate.cloud Interactively rotate 3D plots
tkexamp Create Tk dialog boxes with controls to show examples of changing parameters on a graph.
dots Create a quick dotchart (histogram)
run.cor.examp Interactively demonstrate correlations
lattice.demo Interactively explore the conditioned panels in lattice plots.
run.hist.demo Create a histogram and interactively change the number of bars.
clipplot Clip plotting to a rectangular region
char2seed Convert a character string into a random seed
steps Steps data
USCrimes US Crime Statistics
slider slider / button control widgets
dynIdentify Interacively place labels for points in a plot
hpd Compute Highest Posterior Density Intervals
HWidentify Show label for point being Hovered over.
No Results!

Last month downloads


License Artistic-2.0
Date 2016-02-08
LazyData true
KeepSource true
NeedsCompilation no
Packaged 2016-02-12 01:53:42 UTC; Family
Repository CRAN
Date/Publication 2016-02-12 07:40:49

Include our badge in your README