Aj 请问用R软件怎么将一个条形图和折线图画在一起,横轴表示时间,纵轴表示数量,数量就是已经统计好的频数,,设为x1,x2向量,t表示时间向量,怎么把x1画成关于t的条形图,x2画成关于t的折线图,并且在一个图上,急急急!!!谢谢。
dvd-hover R画图 Try this x <- c(5,2,1,7) temp <- barplot(x,ylim=c(0,10)) lines(temp,x,type='l') lines(temp,x,type='p') text(temp,x,labels=x,pos=3) Good luck.