Re: [R] add horizontal reference lines in lattice bwplot

2012-06-13 Thread Gareth.Williams
> -Original Message- > From: PtitBleu [mailto:ptit_b...@yahoo.fr] > Sent: Wednesday, 13 June 2012 5:46 PM > To: r-help@r-project.org > Subject: Re: [R] add horizontal reference lines in lattice bwplot > > Hello Gareth, > > Concerning the lines, you can try : > panel.abline(h=13) > and > p

[R] add horizontal reference lines in lattice bwplot

2012-06-12 Thread Gareth.Williams
I'm plotting a lattice bwplot from a data.frame and would like to add some horizontal lines indicating some reference values (preferably with text annotation) as well as a grid of regular log tics. The following illustrates the plot: data(ToothGrowth) require("lattice") p = bwplot(exp(len) ~ su