Package: TeachingDemos 2.13

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

Authors:Greg Snow

TeachingDemos_2.13.tar.gz
TeachingDemos_2.13.zip(r-4.5)TeachingDemos_2.13.zip(r-4.4)TeachingDemos_2.13.zip(r-4.3)
TeachingDemos_2.13.tgz(r-4.4-any)TeachingDemos_2.13.tgz(r-4.3-any)
TeachingDemos_2.13.tar.gz(r-4.5-noble)TeachingDemos_2.13.tar.gz(r-4.4-noble)
TeachingDemos_2.13.tgz(r-4.4-emscripten)TeachingDemos_2.13.tgz(r-4.3-emscripten)
TeachingDemos.pdf |TeachingDemos.html
TeachingDemos/json (API)
NEWS

# Install 'TeachingDemos' in R:
install.packages('TeachingDemos', repos = c('https://glsnow.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/glsnow/teachingdemos/issues

Datasets:
  • USCrimes - US Crime Statistics
  • ccc - Sample data downloaded and converted from a GPS unit
  • coin.faces - Designs for coin faces for use with plot.rgl.coin
  • evap - Data on soil evaporation.
  • h2h - Sample data downloaded and converted from a GPS unit
  • ldsgrowth - Growth of The Church of Jesus Christ of Latter-day Saints.
  • outliers - Outliers data
  • steps - Steps data
  • stork - Neyman's Stork data
  • towork - Sample data downloaded and converted from a GPS unit

On CRAN:

7.64 score 18 packages 748 scripts 15k downloads 7 mentions 138 exports 0 dependencies

Last updated 9 months agofrom:d12ca23c7e. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 13 2024
R-4.5-winOKNov 13 2024
R-4.5-linuxOKNov 13 2024
R-4.4-winOKNov 13 2024
R-4.4-macNOTENov 13 2024
R-4.3-winOKNov 13 2024
R-4.3-macNOTENov 13 2024

Exports:%<%%<=%bctcalchar2seedchisq.detailci.exampclipplotclt.exampcnvrt.coordscol2graycol2greycor.rect.plotdicedigitsdotsdots2dynIdentifyemp.hpdetxtCommentetxtPlotetxtSkipetxtStartetxtStopfacesfaces2fagan.plotflip.rgl.coingp.closegp.opengp.plotgp.sendgp.splothpdHTKidentifyHWidentifylattice.demoloess.demomdtxtCommentmdtxtPlotmdtxtSkipmdtxtStartmdtxtStopmle.demoms.arrowsms.facems.femalems.filled.polygonms.imagems.malems.polygonms.polygramms.sunflowersmy.symbolsoldzoomplotpairs2panel.dicepanel.my.symbolspetalsplot.diceplot2scriptplotFaganplotFagan.oldplotFagan2plotFagan2.oldpower.exampPredict.Plotprepanel.diceput.points.demoPvalue.binom.simPvalue.norm.simrgl.coinrgl.diergl.Maproc.demoroll.rgl.dierotate.cloudrotate.persprotate.wireframerun.ci.examprun.cor.examprun.cor2.examprun.hist.demorun.old.cor.examprun.old.cor2.examprun.power.examprun.power.examp.oldrun.Pvalue.binom.simrun.Pvalue.norm.simSensSpec.demoshadowtextsigma.testsimfunsliderslidervSnowsCorrectlySizedButOtherwiseUselessTestOfAnythingSnowsPenultimateNormalityTestspread.labssquishplotsubplotTkApproxtkBrushTkBuildDistTkBuildDist2tkexampTkIdentifyTkListViewTkPredictTkSplinetree.demotriplottxtCommenttxtSkiptxtStarttxtStopupdateusrvis.binomvis.boxcoxvis.boxcox.oldvis.boxcoxuvis.boxcoxu.oldvis.gammavis.normalvis.tvis.testvt.normhistvt.qqnormvt.residpermutevt.residsimvt.scatterpermutevt.tspermutewdtxtCommentwdtxtPlotwdtxtSkipwdtxtStartwdtxtStopz.testzoomplot

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
Various functions for demonstration and learning.TeachingDemos-package TeachingDemos
Less than or Less than and equal operators that can be chained together.%<% %<=%
Box-Cox Transformsbct
Plot a month or year calendarcal
Convert a character string into a random seedchar2seed
Print details of a chi-squared testchisq.detail
Plot examples of Confidence Intervalsci.examp run.ci.examp
Clip plotting to a rectangular regionclipplot
Plot Examples of the Central Limit Theoremclt.examp
Convert between the 5 different coordinate sytems on a graphical devicecnvrt.coords
Designs for coin faces for use with plot.rgl.coincoin.faces
Convert colors to grey/grayscalecol2gray col2grey
Plot a visualization of the correlation using colored rectanglescor.rect.plot
Simulate rolling dicedice panel.dice plot.dice prepanel.dice
Return the digits that make up an integerdigits
Create a quick dotchart (histogram)dots dots2
Interacively place labels for points in a plotdynIdentify TkIdentify
Data on soil evaporation.evap
Chernoff Facesfaces
Chernoff Facesface2.plot faces2
Create a Fagan plot to demonstrate Bayes Theorem and screening testsfagan.plot plotFagan plotFagan.old plotFagan2 plotFagan2.old
Alpha version functions to send plotting commands to GnuPlotgp.close gp.open gp.plot gp.send gp.splot
Compute Highest Posterior Density Intervalsemp.hpd hpd
Show label for point being Hovered over.HTKidentify HWidentify
Interactively explore the conditioned panels in lattice plots.lattice.demo
Growth of The Church of Jesus Christ of Latter-day Saints.ldsgrowth
Demonstrate the internals of loess curve fitsloess.demo
Demonstrate the basic concept of Maximum Likelihood Estimationmle.demo
Symbol functions/data to be passed as symb argument to my.symbolsms.arrows ms.face ms.female ms.filled.polygon ms.image ms.male ms.polygon ms.polygram ms.sunflowers
Draw Symbols (User Defined) on a Plotmy.symbols
Outliers dataoutliers
Create part of a scatterplot matrixpairs2
Draw Symbols (User Defined) on a Lattice Plotpanel.my.symbols
Play the Petals Around the Rose gamepetals
Create a script from the current plotplot2script
Graphically illustrate the concept of power.power.examp power.refresh run.power.examp run.power.examp.old
Demonstrate Correlation and Regression by placing and moving data pointsput.points.demo
Simulate P-valuesPvalue.binom.sim Pvalue.norm.sim run.Pvalue.binom.sim run.Pvalue.norm.sim
Animated die roll or coin flipflip.rgl.coin rgl.coin rgl.die roll.rgl.die
Plot a map in an rgl windowrgl.Map
Demonstrate ROC curves by interactively building oneroc.demo
Interactively rotate 3D plotsrotate.cloud rotate.persp rotate.wireframe
Interactively demonstrate correlationsrun.cor.examp run.cor2.examp run.old.cor.examp run.old.cor2.examp
Create a histogram and interactively change the number of bars.run.hist.demo
Demonstrate Sensitivity, Specificity, PPV, and NPVSensSpec.demo
Add text to a plot with a contrasting background.shadowtext
One sample Chi-square test for a population variancesigma.test
Create a function to simulate datasimfun
slider / button control widgetsslider
Create a Tk slider windowsliderv
Snow's Correctly Sized But Otherwise Useless Test of AnythingSnowsCorrectlySizedButOtherwiseUselessTestOfAnything
Test the uninteresting question of whether the data represents an exact normal distribution.SnowsPenultimateNormalityTest
Spread out close points for labeling in plotsspread.labs
Squish the plotting area to a specified aspect ratiosquishplot
Steps datasteps
Neyman's Stork datastork
Embed a new plot within an existing plotsubplot
Plot a set of data in a Tk window and interactively move lines to see predicted y-values corresponding to selected x-values.TkApprox
Change the Color and Styles of points interactivelytkBrush
Interactively create a probability distribution.TkBuildDist TkBuildDist2
Create Tk dialog boxes with controls to show examples of changing parameters on a graph.tkexamp
Interactivly view structures of list and list like objects.TkListView
Plot predicted values from a model against one of the predictors for a given value of the othe predictorsPredict.Plot TkPredict
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.TkSpline
Sample data downloaded and converted from a GPS unitccc h2h towork
Interactively demonstrate regression treestree.demo
Create or add to a Trilinear Plottriplot
Save a transcript of commands and/or output to a text file.etxtComment etxtPlot etxtSkip etxtStart etxtStop mdtxtComment mdtxtPlot mdtxtSkip mdtxtStart mdtxtStop txtComment txtSkip txtStart txtStop wdtxtComment wdtxtPlot wdtxtSkip wdtxtStart wdtxtStop
Updates the 'usr' coordinates in the current plot.updateusr
US Crime StatisticsUSCrimes
Plot various distributions then interactivly adjust the parameters.vis.binom vis.gamma vis.normal vis.t
Interactively visualize Box-Cox transformationsvis.boxcox vis.boxcox.old vis.boxcoxu vis.boxcoxu.old
Do a Visual test of a null hypothesis by choosing the graph that does not belong.vis.test vt.normhist vt.qqnorm vt.residpermute vt.residsim vt.scatterpermute vt.tspermute
Z test for known population standard deviationz.test
Zoom or unzoom an existing plot in the plot windowoldzoomplot zoomplot