Roberto
unread,Sep 4, 2009, 3:36:36 PM9/4/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ggplot2
It seems that, when used together with scale_y_log10(), geom_hline()
requires as y intercept the log10 of the y intercept, instead of the y
intercept itself. I don't think this is the desired behavior. It's
certainly not the way that abline(h=...) behaves with plot( ... ,
log="y").
For instance,
da <- data.frame(x=1:2, y=c(1, 10))
qplot(x, y, data=da) +
scale_y_log10() +
geom_hline(yintercept=1, colour="red")
The red line is drawn at y=10 instead of y=1.
Thanks, Hadley, for looking at this and for the reply to my previous
post on faceting scales.
Roberto