[R-SIG-Finance] segments could not draw line in log plot
Christian Prinoth
Christian.Prinoth at epsilonsgr.it
Thu Nov 27 17:56:54 CET 2008
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 mes...{{dropped:16}}
More information about the R-SIG-Finance
mailing list