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

2012-09-12 Thread Benjamin Tyner
Many thanks Paul, that is a nifty way to do it. Regards Ben Paul Murrell wrote: Hi On 07/09/12 09:35, Benjamin Tyner wrote: Update: seems one way to skin this cat is to add gp = gpar(fontfamily=mono) to the viewport() call itself. If anyone has any suggestions for a robust way to

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

2012-09-10 Thread Paul Murrell
Hi On 07/09/12 09:35, Benjamin Tyner wrote: Update: seems one way to skin this cat is to add gp = gpar(fontfamily=mono) to the viewport() call itself. If anyone has any suggestions for a robust way to extract this piece information from the key grob itself (it's nested several levels

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

2012-09-06 Thread Benjamin Tyner
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

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

2012-09-06 Thread Benjamin Tyner
Update: seems one way to skin this cat is to add gp = gpar(fontfamily=mono) to the viewport() call itself. If anyone has any suggestions for a robust way to extract this piece information from the key grob itself (it's nested several levels deep), I'm all ears. Thanks Ben