On
R version 2.7.0 (2008-04-22)
i386-apple-darwin8.10.1

locale:
C/C/en_US/C/C/C

attached base packages:
[1] splines   grid      grDevices datasets  graphics  stats      
utils     methods   base

other attached packages:
  [1] Design_2.1-1      survival_2.34-1   Hmisc_3.4-3        
languageR_0.92    coda_0.13-1       lme4_0.99875-9
  [7] Matrix_0.999375-9 zipfR_0.6-0       lattice_0.17-6     
MASS_7.2-41       JGR_1.5-18        iplots_1.1-2
[13] JavaGD_0.5-1      rJava_0.5-1

loaded via a namespace (and not attached):
[1] cluster_1.11.10 tools_2.7.0

 From the xYplot() help page (as you can see from the comment, the  
problem had been noted---although "works differently" seems to be a  
euphemism for "doesn't work"--- reported by me, among others, a while  
ago):
dfr <- expand.grid(month=1:12, year=c(1997,1998), reps=1:100)
month <- dfr$month; year <- dfr$year
y <- abs(month-6.5) + 2*runif(length(month)) + year-1997
s <- summarize(y, llist(month,year), smedian.hilow, conf.int=.5)
# filled bands: default fill = pastel colors matching solid colors
# in superpose.line (this works differently in R)
xYplot ( Cbind ( y, Lower, Upper ) ~ month, groups=year,
      method="filled bands" , data=s, type="l")
# this produces a bright red band at the top and a black band at the  
bottom
I'll be happy to submit a bug report if this doesn't count and if you  
tell me how.
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/

On May 2, 2008, at 7:50 AM, Frank E Harrell Jr wrote:

> Michael Kubovy wrote:
>> I too have been studying the book and it is indeed outstanding.
>> For my purposes the only topic missing is the straightforward  
>> drawing  of error bars and bands, for which I've been using  
>> Hmisc::xYplot  (where error bands seem to be broken for R) or  
>> gplots::barplot2.
>
> If these are broken in xYplot we need to have a bug report with a  
> small reproducible example.
>
> Frank


        [[alternative HTML version deleted]]

______________________________________________
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