[BioC] Error opening pdf files generated using PDF graphic device

Kasper Daniel Hansen kasperdanielhansen at gmail.com
Tue Aug 17 19:03:05 CEST 2010


You need to close the device, like
  dev.off()

Kasper

On Tue, Aug 17, 2010 at 1:00 PM, Hari Easwaran <hariharan.pe at gmail.com> wrote:
> Hi all,
> I am trying to use the pdf graphic device to make some plots and save as pdf
> files. I get the following error when I try to open the pdf file.
> "There was an error opening this document. The file is damaged and could not
> be repaired."
>
> The command I am using is:
>
> pdf(file="x.pdf")
>
> boxplot(X[,2:11])
>
> X is a data.frame containing values I want to plot.
>
> Following is my R.version:
> $platform
> [1] "i386-apple-darwin9.8.0"
> $arch
> [1] "i386"
> $os
> [1] "darwin9.8.0"
> $system
> [1] "i386, darwin9.8.0"
> $status
> [1] ""
> $major
> [1] "2"
> $minor
> [1] "11.1"
> $year
> [1] "2010"
> $month
> [1] "05"
> $day
> [1] "31"
> $`svn rev`
> [1] "52157"
> $language
> [1] "R"
> $version.string
> [1] "R version 2.11.1 (2010-05-31)"
>
> Any help is gratefully appreciated.
>
> Thanks.
>
> Hari
>
>        [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
>



More information about the Bioconductor mailing list