segments could not draw line in log plot
abline(v=x) is better for my charts. Thanks Christian. Regards, Winds ------------------ ???? ------------------ ???: "Christian Prinoth"<Christian.Prinoth at epsilonsgr.it>; ????: 2008?11?28?(???) ??0:56 ???: "Wind"<windspeedo at qq.com>; "r-sig-finance"<r-sig-finance at stat.math.ethz.ch>; ??: RE: [R-SIG-Finance] segments could not draw line in log plot abline(v=x) where x is the x-value for the vertical line Christian Prinoth <cp at epsilonsgr.it> Epsilon SGR +39-02-88102355
-----Original Message----- From: r-sig-finance-bounces at stat.math.ethz.ch [mailto:r-sig-finance-bounces at stat.math.ethz.ch] On Behalf Of Wind Sent: 27 November, 2008 17:44 To: r-sig-finance Subject: [R-SIG-Finance] segments could not draw line in log plot The following code show the vertical red line successfully. y<-1:100 plot(y) segments(50,0,50,100,col='red') But, if the y axis is changed to log axis, the red line could not be drawn. y<-1:100 plot(y,log='y') segments(50,0,50,100,col='red') I wonder whether there is some method to draw a vertical line in a log-axis plot? Thanks in advance.
_______________________________________________ R-SIG-Finance at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-finance -- Subscriber-posting only. -- If you want to post, subscribe first.
DISCLAIMER: L'utilizzo non autorizzato del presente messaggio ? vietato e potrebbe costituire reato. Le informazioni e le opinioni contenute in questo messaggio sono inviate dal mittente a proprio nome e non costituiscono una posizione ufficiale di Epsilon SGR. Questo messaggio e' confidenziale e se non e' a Lei indirizzato Le saremmo grati se, via e-mail, ne comunicasse l'errata ricezione al mittente. The information and opinions contained in this message do not constitute an official position of Epsilon SGR and are communicated by the sender in is own name. This message is confidential, if you are not the intended recipient, please notify the sender immediately. The information and opinions contained in this message do not constitute an official position of Epsilon SGR and are communicated by the sender in his own name. This message is confidential, if you are not the intended recipient, please notify the sender immediately.