[R] lattice/ylim: how to fix ylim[1], but have ylim[2] dynamically calculated?

Johannes Graumann johannes_graumann at web.de
Sun Feb 14 21:44:21 CET 2010


Deepayan Sarkar wrote:

> 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)?

I sure am - thank you! Following the same path for "bwplot" I found the 
embarrassingly simple answer to my earlier question regarding "varwidth" in 
...

Sincerely, Joh



More information about the R-help mailing list