A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

Superimposing two plots

If you want to give two plot commands, and do not want the second one to wipe out the first one, do the following.

 

plot(first plot)

 

par(new=TRUE)

 

plot(second plot)

 

This will superimpose the second plot on the first. Note that the two plots may have different scales. […]

scatterplot.matrix

John Fox’s package, “car”, has a very useful scatterplot.matrix (or simply spm) to make scatterplots of pairs from a set of variables. The plot below was created using

library(“car”) scatterplot.matrix(~Exppop+Exppphc+literacy+Oppphc, reg.line=lm, smooth=TRUE, span=0.5, diagonal = ‘density’, data=temp) dev.print(jpeg, file=”~/graph-matrix.jpg”, width=500, height=500, pointsize=10)

jitter

jitter is an interesting function that adds a small noise to a vector. A very useful feature if you want to plot data points which have some ties.