Displaying 3 results from an estimated 3 matches for "myplot1".
Did you mean:
myplot
2005 Mar 09
3
function in order to plot the same graph to postscript and pdf
...lot, filename}{
pdf(file=paste(filename, ".pdf", sep=""))
myplot
dev.off()
postscript(file=paste(filename, ".eps", sep=""))
myplot
dev.off()
}
yields in a correct pdf but an empty eps file. However something like this:
plot.both <- function{myplot1, myplot2, filename}{
pdf(file=paste(filename, ".pdf", sep=""))
myplot1
dev.off()
postscript(file=paste(filename, ".eps", sep=""))
myplot2
dev.off()
}
yields the expected results even if myplot1 and myplot2 are identical.
Does somebody know, ho...
2014 Jul 28
0
lattice, latticeExtra: Adding moving averages to double y plot
...yStripStyle <- function(which.panel, factor.levels, ...) {
panel.rect(0, 0, 1, 1,
col = bgColors[which.panel],
border = 1)
panel.text(x = 0.5, y = 0.5,
font=2,
lab = factor.levels[which.panel],
col = txtColors[which.panel])
}
myplot1 <- xyplot(Value ~ Year, data = stuff1data, col="black",
lty=1, pch=1,
ylab = "sweets", strip.left = F,
strip=myStripStyle,
xlab = ("Year"),
panel = function(x,y,...,subscri...
2007 Mar 07
5
How to open more windows to make more graphs at once!
Dear R users,
I have a data frame (test) including five columns of upper (numeric), lower (numeric), observed (numeric), best_sim (numeric) and stname (factor with 80 levels, each level with different length). Now I would like to write a short program to draw one graph as follow for each level of stname but I would like also to draw each time 12 graphs for the 12 levels of stname in the same