[R] jpeg legend space issues

Jim Lemon jim at bitwrit.com.au
Tue Apr 22 13:01:57 CEST 2008


Georg Ehret wrote:
> Dear R community,     I am printing a jpeg file (using plot) and my y-axis
> label becomes partly cut (at the left) by a very close margin of document.
> See example: http://www.igm.jhmi.edu/~gehret/progr_collect_data/beta.jpg
> Can you please help me fix this? I tried "din" and "fig" in the parameter
> and this did not help... (fig permits for a larger margin, but the text is
> still not plotted correctly).

Hi Georg,
Differences in the layout of plots between the screen display and other 
output devices often lie in the size of the plot. Try increasing the 
size of your JPEG and see if this makes a difference, e.g.

jpeg("filename.jpg",width=1000,height=1000,...)

Jim



More information about the R-help mailing list