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="Arial")
>> par(mar=c(5.1,4.5,4.1,2.1));boxplot(All~Nameall,ylab= expression(Size~
(log [10]~mm ^2)), boxwex=0.3, main="All
species",col=c("red","yellow","blue"),ylim=c(0,4.0))
>> Error: plot.new() : figure margins too large
>
>
> When I run the boxplot in R, it shows well, but once I run it in the
postscript, it fails. Can someone help me on it?
> Note: my operational system is windows 7.
Given your pointsize, the margins take up all the plot. So do one of
- increase the device size (recommended)
- reduce the pointsize
- reduce the margins (the par(mar=) setting), carefully
Also, you have not shown us the 'at a minimum' information asked for in
the posting guide, but family = "Arial" is unknown in current R (3.1.0
RC has "ArialMT"), and that call will not produce an EPS file.
>
>
> Many thanks in advance
> Yichun
>
>
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595