摘要:
> dotchart(mtcars$mpg, labels=row.names(mtcars), cex=.7, + main="Gas Mileage for Car Models", + xlab="Miles Per Gallon") > > x x$cyl x$color[x$cyl==4] x$color[x$cyl==6] x$col... 阅读全文
摘要:
1. 使用并列箱型图进行跨组比较 2. 小提琴图 阅读全文
摘要:
> par(mfrow=c(2, 1)) > d > plot(d) > > d plot(d, main="kernel density of miles per gallon") > polygon(d, col="red", border="blue") > rug(mtcars$mpg, col="brown") > > par(lwd=2) > library(sm) ... 阅读全文
摘要:
> par(mfrow=c(2, 2)) > > hist(mtcars$mpg) > > hist(mtcars$mpg, breaks=12, col="red", xlab="miles per gallon", + main="colored histogram with 12 bins") > > hist(mtcars$mpg, freq=FALSE, breaks=... 阅读全文