[R] Plot difference between PNG and X11
Al Piszcz
apiszcz at solarrain.com
Fri Mar 26 19:56:49 CET 2004
Patrick pointed out an error in my coordinate for the mtext function.
Thank you.
On Fri, 26 Mar 2004, Patrick Burns wrote:
> Date: Fri, 26 Mar 2004 16:27:36 +0000
> From: Patrick Burns <pburns at pburns.seanet.com>
> To: Al Piszcz <apiszcz at solarrain.com>
> Subject: Re: [R] Plot difference between PNG and X11
>
> I can't believe this would be the problem, but the first
> thing to check is that the "mar" graphics parameter is
> the same for both devices.
>
> Then I would play with "cex" to see if that changed the
> behavior. Good luck,
>
> Patrick Burns
>
> Burns Statistics
> patrick at burns-stat.com
> +44 (0)20 8525 0696
> http://www.burns-stat.com
> (home of S Poetry and "A Guide for the Unwilling S User")
>
> Al Piszcz wrote:
>
> >I am rendering a plot using boxplot, mtext, abline, etc.
> >
> >The X11 view of the plot looks correct.
> >
> >When I change to the png device to:
> > png(filename="bxplot.png",width=640,height=640)
> >
> >I get half of a character label plotted in the lower left
> >corner in the resulting .png file.
> >The character fragment started to appear in png when
> >I started using mtext.
> >
> >mtext(labelvector,side=1,at=c(xi,0),line=2)
> >
> >Any thoughts on items to try? Thx.
> >
> >______________________________________________
> >R-help at stat.math.ethz.ch mailing list
> >https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> >
> >
> >
> >
>
>
>
More information about the R-help
mailing list