Learn R Programming

TeachingDemos (version 2.13)

Demonstrations for Teaching and Learning

Description

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

15,544

Version

2.13

License

Artistic-2.0

Maintainer

Last Published

February 16th, 2024

Functions in TeachingDemos (2.13)

HWidentify

Show label for point being Hovered over.
Pvalue.norm.sim

Simulate P-values
TkBuildDist

Interactively create a probability distribution.
TkApprox

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

Plot examples of Confidence Intervals
TkPredict

Plot predicted values from a model against one of the predictors for a given value of the othe predictors
TkListView

Interactivly view structures of list and list like objects.
clipplot

Clip plotting to a rectangular region
SensSpec.demo

Demonstrate Sensitivity, Specificity, PPV, and NPV
clt.examp

Plot Examples of the Central Limit Theorem
USCrimes

US Crime Statistics
dice

Simulate rolling dice
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.
char2seed

Convert a character string into a random seed
bct

Box-Cox Transforms
faces2

Chernoff Faces
digits

Return the digits that make up an integer
dots

Create a quick dotchart (histogram)
cnvrt.coords

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

Interacively place labels for points in a plot
chisq.detail

Print details of a chi-squared test
cal

Plot a month or year calendar
towork

Sample data downloaded and converted from a GPS unit
rgl.coin

Animated die roll or coin flip
coin.faces

Designs for coin faces for use with plot.rgl.coin
ldsgrowth

Growth of The Church of Jesus Christ of Latter-day Saints.
fagan.plot

Create a Fagan plot to demonstrate Bayes Theorem and screening tests
cor.rect.plot

Plot a visualization of the correlation using colored rectangles
plot2script

Create a script from the current plot
rgl.Map

Plot a map in an rgl window
evap

Data on soil evaporation.
power.examp

Graphically illustrate the concept of power.
SnowsCorrectlySizedButOtherwiseUselessTestOfAnything

Snow's Correctly Sized But Otherwise Useless Test of Anything
faces

Chernoff Faces
%<%

Less than or Less than and equal operators that can be chained together.
loess.demo

Demonstrate the internals of loess curve fits
outliers

Outliers data
pairs2

Create part of a scatterplot matrix
gp.open

Alpha version functions to send plotting commands to GnuPlot
put.points.demo

Demonstrate Correlation and Regression by placing and moving data points
col2grey

Convert colors to grey/grayscale
mle.demo

Demonstrate the basic concept of Maximum Likelihood Estimation
hpd

Compute Highest Posterior Density Intervals
ms.polygram

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

slider / button control widgets
panel.my.symbols

Draw Symbols (User Defined) on a Lattice Plot
petals

Play the Petals Around the Rose game
lattice.demo

Interactively explore the conditioned panels in lattice plots.
steps

Steps data
rotate.cloud

Interactively rotate 3D plots
stork

Neyman's Stork data
run.hist.demo

Create a histogram and interactively change the number of bars.
roc.demo

Demonstrate ROC curves by interactively building one
shadowtext

Add text to a plot with a contrasting background.
run.cor.examp

Interactively demonstrate correlations
spread.labs

Spread out close points for labeling in plots
sliderv

Create a Tk slider window
zoomplot

Zoom or unzoom an existing plot in the plot window
triplot

Create or add to a Trilinear Plot
updateusr

Updates the 'usr' coordinates in the current plot.
my.symbols

Draw Symbols (User Defined) on a Plot
squishplot

Squish the plotting area to a specified aspect ratio
SnowsPenultimateNormalityTest

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

Embed a new plot within an existing plot
sigma.test

One sample Chi-square test for a population variance
tkBrush

Change the Color and Styles of points interactively
simfun

Create a function to simulate data
vis.binom

Plot various distributions then interactivly adjust the parameters.
tkexamp

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

Interactively visualize Box-Cox transformations
tree.demo

Interactively demonstrate regression trees
vis.test

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

Z test for known population standard deviation
txtStart

Save a transcript of commands and/or output to a text file.
TeachingDemos-package

Various functions for demonstration and learning.