[R] postscript and histogram plots
Prof Brian Ripley
ripley at stats.ox.ac.uk
Sun Nov 12 09:37:08 CET 2006
On Sat, 11 Nov 2006, Robert Mintram wrote:
> The following code plots a little histogram perfectly well under X on
It is not reproducible: please see the footer of this message.
> the screen but when I use the postscript command (also shown) to send
> this to a file I get an incomplete histogram. It seems to print only the
> first half of the bins. All headings and axes are OK.
>
> hist(d[,2],25,xlab="Calls",main="Customer Weekly Profile")
> # d[,2] is a data vector
>
> postscript("cust.eps",horizontal=FALSE)
>
> Any help would be greatly appreciated.
Apparently you forgot dev.off(): since this is to a file, file-buffering
will mean the file is incomplete until you close it.
> 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
More information about the R-help
mailing list