[R] Odd graphic device behavior

peter dalgaard pdalgd at gmail.com
Wed Mar 27 23:11:19 CET 2013


On Mar 27, 2013, at 19:26 , Thomas Adams wrote:

> Peter,
> 
> Thank you. 
> 
> When I run: X11(width=7, height=7), I get the same full-screen graphics device window.
> Running dev.list() gives me X11cairo
> Running system("xdpyinfo") looks reasonable
> 
> I tried running options(device="x11") at the R prompt, but this did not seem to change anything.

And X11.options() said what?

> 
> When I started R with R --vanilla and then did:
> 
> > require(stats)
> >      plot(cars)
> 
> I got:
> 
> Error in plot.new() : figure margins too large
> 
> ... but the window was a reasonable size. However, after I resized the graphics device window modestly and re-ran plot(cars), the plot was generated in the resized window, but the lettering was large as before and the lines were thick as they were previously.

Something's clearly up with the device's notion of pointsize. Or inches.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list