This
month we continue our discussion of elementary graphs in R. This
month we examine histogram generation, 1-D and 2-D kernel density
estimation. The GNU S language, "R" is used to
implement this procedure. R is a statistical programming
environment that utilizes the S and S-Plus language developed at
Lucent Technologies. In the following document we illustrate the use
of a GNU Web interface to the R engine on the "Kryton"
server ( http://kryton.cc.unt.edu/cgi-bin/R/Rprog).
This GNU Web interface is a derivative of the "Rcgi" Perl
scripts available for download from the CRAN Website (http://www.cran.r-project.org),
the main "R" Website. Scripts can be submitted
interactively, edited, and then be re-submitted with changed
parameters by selecting the hypertext link buttons that appear below
the figures. For example, clicking the "Run Program"
button below creates a vector of 100 random normal deviates;
creates a histogram of the random numbers, and then overlays a
nonparametric density estimate over the histogram. To view any
text output, scroll to the bottom of the browser window. To view
any graphical output, select the "Display Graphic"
link. The script can be edited and resubmitted by changing the
script in the form window and then selecting "Run the R
Program". Selecting the browser "back page"
button will return the reader to this document.
Simulating Data with a Known Covariance Matrix
Histograms and One-Dimensional Kernel Density Estimation
Contour and Perspective Plots: Two Dimensional
Kernel Density Estimation
Next Time
Next time we return to Part II of our series on multilevel modeling
using the NLME (linear and nonlinear mixed effects) functions in R and
S-Plus.
References
Krause, A. and Olson, M. (2000). The Basics of S and S-Plus,
2nd Edition. Springer Verlag: New York.