Displaying 1 result from an estimated 1 matches for "finalplot".
2008 Jun 10
1
Concat Multiple Plots into one PNG figure
...plots into one final PNG figure
with the following script.
However instead of giving 2 plots in one figure,
it only gives the the last plot in one figure.
What's wrong with my script below?
__BEGIN__
in_fname <- paste("mydata.txt.",sep="")
out_fname <- paste("finalplot.png",sep="")
dat <- read.table(in_fname, comment.char = "!" , na.strings = "null");
dat.pca <- prcomp(dat[,1:ncol(dat)], retx=TRUE, scores=TRUE)
trellis.device("png", color=TRUE)
png(out_fname)
# End figure expected to be 1 row 2 columns
par(mfr...