| Subject: | XploRe: Learning Guide |
| See XploRe: |
| Quantlet: | graph47 | |
| Description: | First two principal components based on the correlation matrix. | |
| Download: | graph47.xpl |
library("plot") ; loads library plot
data = read ("bostonh") ; reads Boston Housing data
col = grc.col.green-grc.col.blue
col = grc.col.blue+col*(data[,14]<mean(data[,14]))
; colors observations blue and green
plot2 (data, grc.prep.pcacorr, col)
; plots two first principal axes
| Subject: | XploRe: Learning Guide |
| See XploRe: |