On Jul 12, 2010, at 6:26 PM, YANG, Richard ChunHSi wrote:

I ran the following script from xyplot Examples using Tin-R on
Windows and saw no plot produced.

EE <- equal.count(ethanol$E, number=9, overlap=1/4)
xyplot(NOx ~ C | EE, data=ethanol,
   prepanel = function(x,y) prepanel.loess(x, y, span=1),
   xlab="Compression Ratio", ylab="NOx (micrograms/J)",
   panel = function(x,y) {
        panel.grid()(h = -1, v=2)
        panel.xyplot(x,y)
        panel.loess(x,y, span=1)
   },
   aspect = "xy")

The Rgui showed
source(.trPaths[5])

Without any error msg. Did I miss anything? Please enlighten me.

I got the example to work fine but had no plotting with your version and cannot see the difference in the code. I assigned them to t1 nd t2 and ...
> all.equal(t1, t2)
[1] "Component 5: target, current do not match when deparsed"
[2] "Component 29: target, current do not match when deparsed"

Looking at str applied to both does not illuminate me. I have seen problems on my Mac with examples copied from the help page and I suspect there is some invisible character sitting in a copy-pasted version that out mail-clients are not displaying. What happens if you try:

examples(xyplot)  #???

--
David Winsemius, MD
West Hartford, CT

______________________________________________
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