[R] gWidgets: plotting problem
Walther, Alexander
awalthermail at googlemail.com
Sat Jan 16 21:00:50 CET 2010
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
More information about the R-help
mailing list