I thought that scale_x_log2 scales after the data has been binned. But
it seems that it scaled first and then binned (i.e., the binwidth is
at the scale after log2 transform of x).
qplot(x, data=data, geom='histogram', binwidth=1)+scale_x_log2()+scale_y_log2()
Is there a way to bin the data first and then log2 transform x?
--
Regards,
Peng
You probably want coord_trans(x = "log2"). But a log scale on the
y-axis doesn't make any sense for a histogram because the bars start
at y=0.
Hadley
> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/