Re: [R] Setting where the x-axis crosses the y-axis

From: hadley wickham <h.wickham_at_gmail.com>
Date: Sat 07 Apr 2007 - 04:48:42 GMT

Hi Stephane,

Drawing a bar plot with log axes is a really bad idea. The whole point of a bar is that you are judging the area between the top of the bar and the y-axis. If you use a log scaled axis the distance to y=0 is Inf, and your plot isn't really meaningul.

You might want to consider using a dot plot instead. See http://www.b-eye-network.com/view/index.php?cid=2468&fc=0&frss=1&ua= for a good discussion of the issues.

Hadley

On 4/6/07, stephane helleringer <hellerin@ssc.upenn.edu> wrote:
> Hi all,
>
> my apologies for a probably very obvious question but i can't figure out if, on
> a bar plot, there is a simple way to have the x-axis cross the y-axis at 1,
> when the y-axis is on a log-scale?
> I want to draw a bar plot, and have some of the bars "drop" below 1 while
> starting from 1. Is this possible?
> I have been trying various things using barplot, barplot2 etc... without
> success.
> Thanks a lot for your help,
>
> stephane
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>



R-help@stat.math.ethz.ch 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 Sat Apr 07 14:53:19 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 07 Apr 2007 - 06:31:00 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.