| TeachingDemos-package | R Documentation | 
This package provides various demonstrations that can be used in classes or by individuals to better learn statistical concepts and usage of R. Various utility functions are also included
| Package: | TeachingDemos | 
| Type: | Package | 
| License: | Artistic-2.0 | 
Demonstration functions in this package include:
| ci.examp, run.ci.examp | Confidence Interval Examples | 
| clt.examp | Central Limit Theorem Example | 
| dice, plot.dice | Roll and Plot dice (possibly loaded) | 
| faces, faces2 | Chernoff face plots | 
| fagan.plot | Fagan plot for screening designs | 
| lattice.demo | The 3d slicing idea behind lattice/trellis graphics | 
| loess.demo | Interactive demo to show ideas of loess smooths | 
| mle.demo | Interactive demo of Maximum Likelihood Estimation | 
| plot.rgl.coin, plot.rgl.die | Animate flipping a coin or rolling a die | 
| power.examp | Demonstrate concepts of Power. | 
| put.points.demo | Add/move points on a plot and see the effect on correlation and regression. | 
| roc.demo | Interactive demo of ROC curves. | 
| rotate.cloud | Interactively rotate 3d plots. | 
| run.cor.examp | Show plots representing different correlations. | 
| run.hist.demo | Interactively change parameters for histograms. | 
| SensSpec.demo | Show relationship between Sensitivity, Specificity, Prevalence and PPV and NPV. | 
| TkApprox | Interactive linear interpolations of data. | 
| tkBrush | Brush points in a scatterplot matrix. | 
| TkSpline | Interactive spline interpolations of data. | 
| tree.demo | Interactively Recursive partition data (create trees). | 
| vis.binom | Plot various probability distributions and interactively change parameters. | 
| vis.boxcox | Interactively change lambda for Box Cox Transforms. | 
| z.test | Z-test similar to t.test for students who have not learned t tests yet. | 
| Pvalue.norm.sim | |
| Pvalue.binom.sim | Simulate P-values to see how they are distributed. | 
| run.Pvalue.norm.sim | GUI for above. | 
| run.Pvalue.binom.sim | |
| HWidentify | |
| HTKidentify | Identify the point Hovered over with the mouse. | 
| vis.test | test a null hypothesis by comparing graphs. | 
Utility functions include:
| bct | Box-Cox Transforms. | 
| char2seed | set or create the random number seed using a character string | 
| clipplot | clip a plot to a rectangular region within the plot | 
| col2grey | convert colors to greyscale | 
| cnvrt.coords | Convert between the different coordinate systems | 
| dynIdentify | Scatterplot with point labels that can be dragged to a new position | 
| TkIdentify | Scatterplot with lables that can be dragged to new positions | 
| gp.plot gp.splot | send commands to gnuplot | 
| hpd | Highest Posterior Density intervals | 
| my.symbols | Create plots using user defined symbols. | 
| panel.my.symbols | Create lattice plots using user defined symbols. | 
| plot2script | Create a script file that recreates the current plot. | 
| shadowtext | plot text with contrasting shadow for better readability. | 
| squishplot | Set the margins so that a plot has a specific aspect ratio without large white space inside. | 
| spread.labs | Spread out coordinates so that labels do not overlap. | 
| subplot | create a plot inside of an existing plot. | 
| tkexamp | create plots that can have parameters adjusted interactively. | 
| triplot | Trilinear plot for 3 proportions. | 
| txtStart/etxtStart/wdtxtStart | Save commands and output to a text file (possibly for post processing with enscript). | 
| zoomplot | recreate the current plot with different x/y limits (zoom in out). | 
Greg Snow 538280@gmail.com
The tkrplot package
ci.examp()
clt.examp()
clt.examp(5)
plot.dice( expand.grid(1:6,1:6), layout=c(6,6) )
faces(rbind(1:3,5:3,3:5,5:7))
plot(1:10, 1:10)
my.symbols( 1:10, 1:10, ms.polygram, n=1:10, inches=0.3 )
x <- seq(1,100)
y <- rnorm(100)
plot(x,y, type='b', col='blue')
clipplot( lines(x,y, type='b', col='red'), ylim=c(par('usr')[3],0))
power.examp()
power.examp(n=25)
power.examp(alpha=0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.