Dear R mailing listers,
After plotting, I wanna save it as file in pdf format using
pdf("name.pdf")
command. It failed, but I can do it by GUI operation (file-save as-pdf).
e.g.
x11()
hist(x, breaks = 50, probability = FALSE)
pdf("hist.pdf")
[[alternative HTML version deleted]]
I was going to attempt to answer your question, but I refuse to
respond to anyone who writes "wanna" when they mean "want
to".
The use of "wanna" is unacceptable in written English unless you
are *trying* to be funny, and I don't think you are.
cheers,
Rolf Turner
On 01/30/2013 09:48 AM, hp wan wrote:> Dear R mailing listers,
>
>
> After plotting, I wanna save it as file in pdf format using
pdf("name.pdf")
> command. It failed, but I can do it by GUI operation (file-save as-pdf).
>
> e.g.
>
> x11()
> hist(x, breaks = 50, probability = FALSE)
> pdf("hist.pdf")
Can you implement it using my provided example? I read the user guide about dev.copy2pdf but I still failed. Thanks 2013/1/30 ilai <keren@math.montana.edu>> ?dev.copy2pdf > > On Tue, Jan 29, 2013 at 1:48 PM, hp wan <huaping.wan@gmail.com> wrote: > >> Dear R mailing listers, >> >> >> After plotting, I wanna save it as file in pdf format using >> pdf("name.pdf") >> command. It failed, but I can do it by GUI operation (file-save as-pdf). >> >> e.g. >> >> x11() >> hist(x, breaks = 50, probability = FALSE) >> pdf("hist.pdf") >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help@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. >> > >[[alternative HTML version deleted]]
Reasonably Related Threads
- How to extract elements from vector in reverse order?
- plotting two histograms on one plot with hist function
- Why using hist when setting the parameter probability=TRUE does not create probability plot?
- Pasting a list of parameters into a function
- automating a script to read a file