R and Jupyter
This notebook is here to demonstrate the integration capabilities of R with the Jupyter Project. The R kernel is still young, so miss a lot of feature, but can still display inline graphincs in notebooks.
For simple comparison we reproduce here some part of the famous demo(graphics)
command of R in the Jupyter notebook, Where the commend have been converted to markdown cells.
R demo
Here is some code which illustrates some of the differences between R and S graphics capabilities. Note that colors are generally specified by a character string name (taken from the X11 rgb.txt file) and that line textures are given similarly. The parameter "bg" sets the background parameter for the plot and there is also an "fg" parameter which sets the foreground color.
A little color wheel.
This code just plots equally spaced hues in a pie chart. If you have a cheap SVGA monitor (like me) you will probably find that numerically equispaced does not mean visually equispaced. On my display at home, these colors tend to cluster at the RGB primaries. On the other hand on the SGI Indy at work the effect is near perfect
A scatterplot matrix
The good old Iris data (yet again)