Displaying 1 result from an estimated 1 matches for "paraexam".
2005 Feb 20
2
Ask for help on the parallel function output to a pdf file
...can output a parallel
coordinate plot to the pdf file.
library(lattice); pdf("trial.pdf"); data(iris); parallel(~iris[1:4] |
Species, iris); dev.off();
However, if these commands are encapsulated into a function, the
resultant pdf file is empty. For example, we define a simple function
paraExam below, paraExam() may generate a pdf file which is empty from a
pdf viewer.
paraExam<-function(file="trial.pdf"){
library(lattice);
pdf(file);
data(iris);
parallel(~iris[1:4] | Species, iris);
dev.off();
}
Please give me some tips to output parallel coordinate plots t...