R Stata - Data and Statistical Services - Princeton University
R Stata - Data and Statistical Services - Princeton University
R Stata - Data and Statistical Services - Princeton University
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
R <strong>Stata</strong><br />
scatterplotMatrix(~ prestige + income + education<br />
+ women, span=0.7, id.n=0,<br />
data=Prestige)<br />
pairs(Prestige) # Pariwise plots. Scatterplots<br />
of all variables in the dataset<br />
pairs(Prestige, gap=0, cex.labels=0.9) # gap<br />
controls the space between<br />
subplot <strong>and</strong> cex.labels the font<br />
size (Dalgaard:186)<br />
library(car)<br />
scatter3d(prestige ~ income + education, id.n=3,<br />
data=Duncan)<br />
Scatterplots (multiple)<br />
3D Scatterplots<br />
graph matrix sat age score heightin read<br />
graph matrix sat age score heightin read, half<br />
27