Dear list,

i incorporated ggraphics into a loop that subsequently runs over a range
of values. code looks as follows:


multi = function(...){

for (i in 1:length(Lower)) #
{

ggraphics(cont=nb)

par(mar=c(0,0,0,0))
plot(x,y,ylim=c(-2,2),xlim=c(Lower[i],Upper[i]),axes =TRUE, frame.plot =
FALSE)

}
}


whereas Lower and Upper are 1xn vectors of the same length. ggraphics is
intended to be added n-times to the notebook adding n different tabs
comprising a single plot each. running this script without setting up
gWidgets, it perfectly yields n different plots /but/ by application of
ggraphics, the entire dataset is plotted at once, though nothing
relevant was altered. Even more bothering, previously this worked out
pretty well but i had to modify the code a bit and now i am facing one
single plot and not n smaller pieces from the very same dataset.

Any suggestions how to fix this?

best

Alex

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to