Richard, Thank you for your help again. You are right, wrapping panel.barchart was not as hard as it seemed to me.
Thanks, Alex On Tue, Sep 16, 2008 at 12:44 PM, <[EMAIL PROTECTED]> wrote: > > Thank you for a clear example, it works. I tried to play with > > superpose.polygon before to no avail, this clarifies things. > > You're welcome. > > > Another question: would you know how to add gridlines to the plot? > > I'd like to have a few horizontal gridlines on my barchart plot for > > better readability. Do I have to write a wrapper for panel.barchart? > > Probably, but it's not as bad as it sounds. To reuse the previous > example: > > barchart(yield ~ site, > groups=variety, > data = barley, > panel=function(...){panel.barchart(...); panel.grid(v=0, ...)}) > > (The v=0 argument stop vertical grid lines being drawn.) > > Regards, > Richie. > > Mathematical Sciences Unit > HSL > > > ------------------------------------------------------------------------ > ATTENTION: > > This message contains privileged and confidential information intended > for the addressee(s) only. If this message was sent to you in error, > you must not disseminate, copy or take any action in reliance on it and > we request that you notify the sender immediately by return email. > > Opinions expressed in this message and any attachments are not > necessarily those held by the Health and Safety Laboratory or any person > connected with the organisation, save those by whom the opinions were > expressed. > > Please note that any messages sent or received by the Health and Safety > Laboratory email system may be monitored and stored in an information > retrieval system. > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > Scanned by MailMarshal - Marshal's comprehensive email content security > solution. Download a free evaluation of MailMarshal at www.marshal.com > ------------------------------------------------------------------------ > [[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.