Hi, 

 

I am working with R 1.81. When I call bwplot() it prints the output to the
windows device as it should. For example, 

 

d<-data.frame(y=c(2,3,4,5,12,14,16,11),x=c(rep("group1",4),rep("group2",4)))

bwplot(y~x,data=d)

 

This code results in a parallel boxplot. That is a single plot with 2
boxplots next to each other; a boxplot for "group1" and a boxplot for
"group2".

 

However, if I call bwplot within a loop, the window device appears but
nothing is plotted. 

 

for(i in c(1)){

    print(i)

    bwplot(y~x,data=d)

}

 

Does anyone know why this is happening and how to solve it?

 

Thanks, 
Steve 

 

 


	[[alternative HTML version deleted]]


