[R] lattice graphics and source()
Dongfeng LI
dli at scharp.org
Wed Feb 14 01:44:24 CET 2007
Hi,
I am trying the lattice graphics in R. Let's say, such a little
experiment in file myprog.r:
f <- function(){
x <- 1:10
y <- x^2
xyplot(y ~ x)
}
f()
Then I run the program:
> source("myprog.r")
but nothing happens. Manully run f() at the command line:
> f()
then the figure is shown. This seems to be a bug only associated with
lattice graphics, the old style plots do not exibit these behavior.
Dongfeng Li
More information about the R-help
mailing list