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 :

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

2012-06-13 Thread PtitBleu
Hello Gareth, Concerning the lines, you can try : panel.abline(h=13) and panel.grid(h=2, v=0, y=c(11, 12), col.line="blue") I have no idea for the annotation. Sorry. Ptit Bleu. -- View this message in context: http://r.789695.n4.nabble.com/add-horizontal-reference-lines-in-lattice-bwplot-tp46

[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