On 10/23/08, Plantky <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>  My data has some positive and negative values, and I want to plot a
>  barchart. The problem is that the y-axis zero is somewhere in the
>  middle of the plot, and the graph starts with a negative value. How
>  can I make the negative values appear as bars that are going below the
>  y-axis zero?
>  So the desired graph would have some bars projecting up and some down.

If you mean barchart() from the lattice package, just add 'origin = 0'
to your call.

-Deepayan

______________________________________________
R-help@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.

Reply via email to