[R] negative values for barchart
Plantky
ngokangmin at gmail.com
Fri Oct 24 02:45:18 CEST 2008
Thanks a lot! It works!
Deepayan Sarkar wrote:
> On 10/23/08, Plantky <ngokangmin at gmail.com> 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 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.
More information about the R-help
mailing list