What if it is being used on a platform other than Windows? This problem is more 
challenging than you seem to think it is. 

I would suggest including a kind of "par" argument to your function that lets 
the user change your defaults.
-- 
Sent from my phone. Please excuse my brevity.

On July 27, 2016 2:01:37 PM PDT, "Dalthorp, Daniel" <ddalth...@usgs.gov> wrote:
>Hi All,
>I am putting together a package that (among other things) draws some
>nice
>graphs for users. I place some explanatory text on figs using "text"
>and
>"mtext". But the size of the text depends on the Windows display
>settings:
>Smaller (100%), medium (125%) or larger (150%) (In Windows 7... Control
>panel | Appearance and personalization | Display | Make text and other
>items smaller or larger). If I create figs that look good with one
>setting,
>the text is too big (or too small) if another setting is used in
>Windows.
>If I know the Windows setting, I can use cex in R to make the right
>sized
>labels, but if I don't know a user's Windows display size setting...is
>there a way for R to read the setting? Or is there another way to
>control
>label size so that text labels on graphs look good regardless of
>WIndows
>display size setting?
>
>Many thanks for Ideas,
>
>-Dan

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to