[R] barplot with log base 2 scale or shift the x-axis

From: Summer Nitely <summer.nitely_at_gmail.com>
Date: Fri, 02 May 2008 16:13:33 -0600


Hi,
I have data that is on a log base 2 scale. It goes from negative factors of 2 to positive ones. I am using barplot. However, I don't want the data centered at 0 - I want the min of the yaxis to be just below the lowest value in the data. The plots are kind of deceptive switching between positive and negative. I see that barplot has a log option, but that doesn't seem to be adjustable for a log base 2 scale. Does anyone know how to adjust the x-axis, so it's at y= -value rather than at y=0? I''d rather not add a factor to the data, unless I can have accurate labels on the y-axis.
Any ideas?
Thanks,
Summer

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 02 May 2008 - 22:18:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 03 May 2008 - 19:30:37 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive