Ottorino-Luca Pantani wrote:
> 
> The areas I would like to have in gray, are confidence bands
> 
> This link is my starting point
> http://tolstoy.newcastle.edu.au/R/e2/help/07/04/15595.html
> 
> 

Thanks for the code example and for all the work you already put into it!

I think this is an oversight in Deepayan's example, some collision between
... and explicitly passing col. Just remove the col from the argument list
of panel.bands

panel.bands <-  function(x, y, upper, lower,
           subscripts,  ..., font, fontface) { ### drop col
  upper <- upper[subscripts]
  lower <- lower[subscripts]
  panel.polygon(c(x, rev(x)), c(upper, rev(lower)),...) 
}

xyplot(est ~ x | cond, group = grp, data = data, type = 'b',
  col="gray", .## and add it here


Dieter



 

-- 
View this message in context: 
http://r.789695.n4.nabble.com/superpose-polygon-panel-polygon-and-their-colors-tp3002374p3002530.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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