作者:
CAPPON (JI3)
2016-12-20 10:48:30dt <- 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軸的座標軸