[R] lattice/ylim: how to fix ylim[1], but have ylim[2] dynamically calculated?
Deepayan Sarkar
deepayan.sarkar at gmail.com
Sun Feb 14 19:03:37 CET 2010
On Sun, Feb 14, 2010 at 7:33 AM, Johannes Graumann
<johannes_graumann at web.de> wrote:
> Hello,
>
> When drawing "barcharts", I find it not helpful if ylim[1] != 0 - bars for a
> quantity of 0, that do not show a length of 0 are quite non-intuitive.
>
> I have tried to study
> > library(lattice)
> > panel.barchart
> but am unable to figure out where ylim is taken care of and how one might
> fix ylim[1] to 0 for barcharts ...
>
> Can anyone point out how to tackle this?
Are you sure you are not looking for 'origin=0' (described in ?panel.barchart)?
-Deepayan
More information about the R-help
mailing list