[R] pdf plotting of splom

From: Sebastian Luque <spluque_at_gmail.com>
Date: Tue 04 Oct 2005 - 13:52:32 EST


Hi,

The following code produces a plot on X11:

splom(~iris[1:4], groups = Species, data = iris,

      panel = panel.superpose,
      key = list(title = "Three Varieties of Iris",
        columns = 3,
        points = list(pch = super.sym$pch[1:3],
          col = super.sym$col[1:3]),
        text = list(c("Setosa", "Versicolor", "Virginica"))))

However, when I try the same code in a pdf device (whether using 'print' or not), produces a pdf file with only the layout of all the panels. The panels are completely empty.

pdf("splom-test.pdf", family = "Times", bg = "white") print(splom(~iris[1:4], groups = Species, data = iris,

      panel = panel.superpose,
      key = list(title = "Three Varieties of Iris",
        columns = 3,
        points = list(pch = super.sym$pch[1:3],
          col = super.sym$col[1:3]),
        text = list(c("Setosa", "Versicolor", "Virginica")))))
dev.off()

Curiously, some points appear for a split second when opening the file, but they seem to be replaced by white space immediately, hence the totally empty panels.

Any pointers as to what might be going on? I wasn't able to find possible explanations on the documentation or the archives.

Thanks in advance,

-- 
Sebastian P. Luque

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Tue Oct 04 14:05:39 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:35 EST