首先看下包的安装:
install.packages("plotrix")
我们先来看下这个包中一些基础的绘图功能:
1....,gap.axis="x"
gap.plot(twogrp,rnorm(20),gap=c(8,16),gap.axis="x",xlab="X values",xtics=c(4,7,17,20),ylab...(twovec,gap=list(top=c(12,18),bottom=c(-5,-3)),main="Show outliers separately")
2...., lcol=c("grey80", "white"),
rcol=c("blue", "red","black"), ltype="bar", rtype=c("l","p","o")...带表格的柱状图
testdf <- data.frame(Before = c(10, 7, 5, 9), During = c(8, 6, 2, 5),
After = c(5, 3, 4, 3)