[问题] barplot请教

楼主: CAPPON (JI3)   2016-12-20 10:48:30
dt <- data.frame(
type=c("A","B"),
freq = c(1200,1650),
earn = c(0.94,0.98))
bp <- barplot((dt[,2]),yaxt="n",col="lightblue")
box()
lines(bp, dt[,3]*500, col = 4)
X轴放type A&B
Y1轴是earn 用trend
Y2轴是freq 用直方图呈现
因 2种资料差异很大
但画出来的图不美观
另外 如何显示双Y轴的座标轴
作者: andrew43 (讨厌有好心推文后删文者)   2016-12-20 18:09:00

Links booklink

Contact Us: admin [ a t ] ucptt.com