Learn R Programming

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

TeachingDemos (version 2.3)

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

License

Artistic-2.0

Maintainer

Greg Snow

Last Published

February 17th, 2024

Functions in TeachingDemos (2.3)

limits.g

Functions to plot Shewhart g chart
plot2script

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

Demonstrate Correlation and Regression by placing and moving data points
dots

Create a quick dotchart (histogram)
dynIdentify

Interacively place labels for points in a plot
clipplot

Clip plotting to a rectangular region
txtStart

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

Various functions for demonstration and learning.
TkApprox

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

Sample data downloaded and converted from a GPS unit
hpd

Compute Highest Posterior Density Intervals
ci.examp

Plot examples of Confidence Intervals
run.cor.examp

Interactively demonstrate correlations
TkListView

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

Print details of a chi-squared test
project.Map

Apply projections to Map objects (from maptools package)
bct

Box-Cox Transforms
gp.open

Alpha version functions to send plotting commands to GnuPlot
dice

Simulate rolling dice
run.hist.demo

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

Demonstrate ROC curves by interactively building one
faces

Chernoff Faces
tkBrush

Change the Color and Styles of points interactively
coin.faces

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

Demonstrate Sensitivity, Specificity, PPV, and NPV
lattice.demo

Interactively explore the conditioned panels in lattice plots.
mle.demo

Demonstrate the basic concept of Maximum Likelihood Estimation
tkexamp

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

Convert colors to grey/grayscale
identify.Map

Identify polygons within a plotted map from the maptools packages.
rotate.cloud

Interactively rotate 3D plots
loess.demo

Demonstrate the internals of loess curve fits
cnvrt.coords

Convert between the 5 different coordinate sytems on a graphical device
plot.rgl.coin

Animated die roll or coin flip
clt.examp

Plot Examples of the Central Limit Theorem
char2seed

Convert a character string into a random seed
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.
rgl.Map

Plot a map in an rgl window
tree.demo

Interactively demonstrate regression trees
power.examp

Graphically illustrate the concept of power.
ms.polygram

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

Plot various distributions then interactivly adjust the parameters.
vis.boxcox

Interactively visualize Box-Cox transformations
spread.labs

Spread out close points for labeling in plots
subplot

Embed a new plot within an existing plot
updateusr

Updates the 'usr' coordinates in the current plot.
fagan.plot

Create a Fagan plot to demonstrate Bayes Theorem and screening tests
strip.shingle

strip function for trellis plots
squishplot

Squish the plotting area to a specified aspect ratio
faces2

Chernoff Faces
state.vbm

Map object for the US State Visibility Based Map
pairs2

Create part of a scatterplot matrix
slider

slider / button control widgets
z.test

Z test for known population standard deviation
recenter.Map

Recenter a Map object from the maptools package.
sliderv

Create a Tk slider window
my.symbols

Draw Symbols (User Defined) on a Plot
triplot

Create or add to a Trilinear Plot
zoomplot

Zoom or unzoom an existing plot in the plot window