[R] Units and dimensions in grid object
Paul Murrell
p.murrell at auckland.ac.nz
Mon Mar 7 02:49:34 CET 2011
Hi
On 5/03/2011 9:37 a.m., Sébastien Bihorel wrote:
> Dear R-users,
>
> As far as I understand, when one defines the width of a rectGrob call using
> a 'npc' unit, the width of the object is proportional to the width of the
> current viewport. Is there a way to refer to the height (or width) of the
> viewport when defining the width (or height) of the rectGrob object?
Are you looking for ...
rectGrob(width=unit(1, "npc"))
... (which is the default anyway) or something else ?
Paul
> Thanks
>
> Sebastien
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/
More information about the R-help
mailing list