[R] draw.key; getting grobWidth to respect fontfamily="mono"

Benjamin Tyner btyner at gmail.com
Thu Sep 6 18:00:32 CEST 2012


Hello

Within my panel function, I am using draw.key to create a custom key for 
each panel. I'm trying to use grobWidth to calculate the correct width 
for the viewport, but it appears to be disregarding the fontfamily when 
computing the width. Attached is an example; any ideas what I'm doing wrong?

Many thanks
Ben
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: grobWidth.R
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120906/cfe0d2f8/attachment.pl>


More information about the R-help mailing list