An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130130/4c395b94/attachment.pl>
export figure by pdf command
3 messages · hp wan, andrija djurovic, MacQueen, Don
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130129/c21e0276/attachment.pl>
1 day later
Works for me, so you will have to provide more information.
x11() hist(rnorm(100)) dev.copy2pdf(file='mytest.pdf')
X11 2
list.files(patt='mytest')
[1] "mytest.pdf" -Don
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 1/29/13 1:22 PM, "hp wan" <huaping.wan at gmail.com> wrote:
>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 at math.montana.edu>
>
>> ?dev.copy2pdf
>>
>> On Tue, Jan 29, 2013 at 1:48 PM, hp wan <huaping.wan at 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 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.
>>>
>>
>>
>
> [[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.