Re: [R] figure margins too large

2014-04-03 Thread 张以春
help@r-project.org > 主题: Re: [R] figure margins too large > > On 04/03/2014 04:32 PM, 张以春 wrote: > > Dear R experts, > > > > > > I tried to plot some figures in R using postscript(), but it always shows > > that the fugures margin is

Re: [R] figure margins too large

2014-04-03 Thread Prof Brian Ripley
On 03/04/2014 06:32, 张以春 wrote: Dear R experts, I tried to plot some figures in R using postscript(), but it always shows that the fugures margin is too large. I don't know how to change it. The following is my example: postscript("All.eps",width=3.27,height=1.416,pointsize=12,family="Aria

Re: [R] figure margins too large

2014-04-03 Thread Jim Lemon
On 04/03/2014 04:32 PM, 张以春 wrote: Dear R experts, I tried to plot some figures in R using postscript(), but it always shows that the fugures margin is too large. I don't know how to change it. The following is my example: postscript("All.eps",width=3.27,height=1.416,pointsize=12,family="A

[R] figure margins too large

2014-04-02 Thread 张以春
Dear R experts, I tried to plot some figures in R using postscript(), but it always shows that the fugures margin is too large. I don't know how to change it. The following is my example: > postscript("All.eps",width=3.27,height=1.416,pointsize=12,family="Arial") >par(mar=c(5.1,4.5,4.1,2.1));

Re: [R] "figure margins too large" in RGtk2 drawing area as cairo device - why?

2012-03-09 Thread Michael Lawrence
Hi Mark, This comes down to the way that GTK+ allocates size to its widgets. The allocation of a widget is initialized to have a width and height of 1. When a child is added to a visible parent, the parent will execute its lay out algorithm and allocate a certain amount of space to the widget. The

Re: [R] "figure margins too large" in RGtk2 drawing area as cairo device - why?

2012-03-09 Thread Mark Heckmann
Thanks, Peter. I did the following: restart R and run the same code with and without a minimal system pause (Sys.sleep) after the line that adds the device to the GTK window. Adding a pause will make it work, though I do not understand what is happening here. Note the different settings of par(

Re: [R] "figure margins too large" in RGtk2 drawing area as cairo device - why?

2012-03-08 Thread Mark Heckmann
Peter, thanks for the answer! Indeed, it does work if I set par(mar=c(0,0,0,0)) but not when it is set to the default values mar=c(5.1, 4.1, 4.1, 2.1). The par settings returned in the example are the defaults, so no extraordinary big mar settings or char size (see below). Also, it does not matte

Re: [R] "figure margins too large" in RGtk2 drawing area as cairo device - why?

2012-03-08 Thread peter dalgaard
On Mar 8, 2012, at 20:27 , Mark Heckmann wrote: > When using a gtkDrawingArea as a Cairo device I very often encounter the > error: "figure margins too large" > Even for the below "getting started" example from http://www.ggobi.org/rgtk2/ > this is the case. > >> win = gtkWindow() >> da = gtk

[R] "figure margins too large" in RGtk2 drawing area as cairo device - why?

2012-03-08 Thread Mark Heckmann
When using a gtkDrawingArea as a Cairo device I very often encounter the error: "figure margins too large" Even for the below "getting started" example from http://www.ggobi.org/rgtk2/ this is the case. > win = gtkWindow() > da = gtkDrawingArea() > win$add(da) > asCairoDevice(da) [1] TRUE > plo

Re: [R] figure margins too large; was: (no subject)

2012-01-27 Thread Uwe Ligges
1. Use a sensible subject line 2. "Figure margins too large" means there is no space in the device to plot the data, the margins take (almost) all the space already. Uwe Ligges On 26.01.2012 17:59, R. Michael Weylandt wrote: I usually get that error when I'm replotting on a window/device th

Re: [R] "figure margins too large" issue

2008-09-09 Thread Hui-Yi Chu
Thank you Marc, I have checked two versions following your suggestions and the default setting of mar in both versions are same to each other as c(5,4,4,2)+0.1. Besides, I dont change any default settings about the graphics devices. For more info, following is my two sessions of R. *1.* R version

Re: [R] "figure margins too large" issue

2008-09-09 Thread Marc Schwartz
It is not the default setting for par("mar") that changed. There are other device specific changes that occurred in 2.7.0, including, for some devices (eg. pdf and bitmap), the default device dimensions. See the bullets in the NEWS file under "SIGNIFICANT USER-VISIBLE CHANGES" and "GRAPHICS CHANG

Re: [R] "figure margins too large" issue

2008-09-09 Thread Marc Schwartz
on 09/09/2008 05:19 PM Hui-Yi Chu wrote: > Hi everyone, > > I updated R from 2.6.2 to 2.7.2 recently but keep getting the error "figure > margins too large" when plot pictures which never happened to me when using > 2.6.2. After googling and searching the mailing list, I still have no idea > how t

[R] "figure margins too large" issue

2008-09-09 Thread Hui-Yi Chu
Hi everyone, I updated R from 2.6.2 to 2.7.2 recently but keep getting the error "figure margins too large" when plot pictures which never happened to me when using 2.6.2. After googling and searching the mailing list, I still have no idea how to optimize it. One of my packages fixed bugs in 2.7.2

Re: [R] figure margins too large for a barplot in png, pdf ok

2008-05-07 Thread Alexy Khrabrov
On May 6, 2008, at 10:30 PM, Prof Brian Ripley wrote: What were H & W? For png() they are (by default) in pixels, for pdf() in inches. You haven't told us your OS, but I guess Mac OS. Please update to R 2.7.0: that offers you two new png() devices for higher-quality plots, and various o

Re: [R] figure margins too large for a barplot in png, pdf ok

2008-05-06 Thread Prof Brian Ripley
What were H & W? For png() they are (by default) in pixels, for pdf() in inches. You haven't told us your OS, but I guess Mac OS. Please update to R 2.7.0: that offers you two new png() devices for higher-quality plots, and various other improvements. (If you want to use the cairo-based png

Re: [R] figure margins too large for a barplot in png, pdf ok

2008-05-06 Thread Charilaos Skiadas
On May 6, 2008, at 10:43 PM, Alexy Khrabrov wrote: I've used to have a script with a barplot command it in, preceded by a png: png(graph.file,height=H,width=W) barplot(t,names.arg=breaks[2:(length(t)+1)],tck=gridlines) -- worked before R 2.6.2. When I tried it in R 2.6.2, which I have for

[R] figure margins too large for a barplot in png, pdf ok

2008-05-06 Thread Alexy Khrabrov
I've used to have a script with a barplot command it in, preceded by a png: png(graph.file,height=H,width=W) barplot(t,names.arg=breaks[2:(length(t)+1)],tck=gridlines) -- worked before R 2.6.2. When I tried it in R 2.6.2, which I have for a while but didn't run with that script, it complain