忍不住的將程式碼作了點小修正, 借花獻佛. 
pdf(file="RColors.pdf", width=13, height=13)
op <- par(mar=c(2, 2, 2, 2) + .1)
plot(c(1, 8), c(1, 83), type="n",
axes=FALSE, xlab="", ylab="",
main="\n\ncolors()", col.main="blue")
text(c(rep(1:8, 82), 1), c(rep(83:2, rep(8, 82)), 1),
colors(), col=colors())
par(op)
dev.off()
[此贴子已经被作者于2008-8-29 8:19:20编辑过]