[R] Difference in client vs. server graphics defaults

Richard Cotton Richard.Cotton at hsl.gov.uk
Fri Mar 20 10:42:50 CET 2009



lawnboy34 wrote:
> 
> I am having trouble with the difference between default graphic settings
> on
> my client machine and the instance of R on our company's server. I created
> a
> script locally that output graphs, but when I run it on the server the
> output graphs have titles running past the margins, legends improperly
> placed, etc. I checked the default par() settings and found differences
> between my machine and the server's R instance in 6 parameters. I
> attempted
> to set the server-side par() settings to mimic my client machine, but I
> cannot change the three read-only settings of cra, cxy, and din, and the
> graphs still look distorted. Is there another way to make the two sets of
> defaults equal each other?
> 
> I am using R 2.6.1 on the server and 2.7.0 on my client computer, but I am
> doubtful that this would have an effect. Any ideas?
> 

Since we can't reproduce what you've done, it's hard to pinpoint the problem
exactly.  I suggest you start with a very simple plot, and create that on
your machine and the server.  Then gradually build up the plot until it
looks like the one you want.  That way you should be able to find the
offending line of code.

Also, if you write the graphs to file (using png, or whatever), then you
don't need to worry about the device or character  sizes, since you can
explicitly define them.

Finally, get your copy of R updated.  You should eliminate version issues
for your own sanity at least.

-----
Regards,
Richie.

Mathematical Sciences Unit
HSL
-- 
View this message in context: http://www.nabble.com/Difference-in-client-vs.-server-graphics-defaults-tp22609493p22617103.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list