[R] Strange behavior when plotting with ggplot2 and lattice

Ralf B ralf.bierig at gmail.com
Sat May 15 01:21:32 CEST 2010


Hi all,

I have the following script,which won't plot (tried in RGUI and also
in Eclipse StatET):

library(ggplot2)	# for plotting results
userids <- c(1,2,3)
for (userid in userids){
	qplot(c(1:10), c(1:20))
}
print ("end")

No plot shows up. If I run the following:

library(ggplot2)	# for plotting results
userids <- c(1,2,3)
for (userid in userids){
	blabla)))
	qplot(c(1:10), c(1:20))
}
print ("end")

which contains a syntax mistake in line 4, then I get the plot output
on the screen. I have the same issue when using lattice, but its ok
when using standard graphics plot.

WHAT IS GOING ON???

Ralf



More information about the R-help mailing list