有人可以解释为什么没有出现右手轴标签吗?
df_up<-data.frame(cutoff=c(1:10),percentage_accuracy=seq(.1,1,by=.1))
df_down<-data.frame(cutoff=c(2:11),percentage_accuracy=runif(10, 0, 1))
plot(x=df_up$cutoff,y=df_up$percentage_accuracy, main="RSI predicting trend",ylab=NA,xlab="RSI cutoff value",col="blue",type="p")
mtext(side = 2, line = 3, "% successful upward predictions")
par(new = T)
plot(x=df_down$cutoff,y=df_down$percentage_accuracy,axes=F,xlab=NA,ylab=NA,col="red",type="p")
axis(side = 4)
mtext(side = 4, line = 3, '% successful downward predictions') #THIS DOESNT APPEAR
legend("top",legend=c("% successful upward predictions", '% successful downward predictions'), pch=c(1,1),col=c("blue", "red"))