Hi,
In a lattice plot like this:
 
win.graph()
xyplot(tmx~frequ|as.factor(as.numeric(spf)),groups=as.factor(blm),data=tmx,type="l",pch=16,xlab="frequency (N)",ylab="Area held (ha)",
auto.key=list(blm,points=F,lines=T,title="Blm factor",cex.title=0.7,cex=0.7,corner=c(1,1)),main="Mangroves target=1573ha",layout=c(2,3))

I would like to add a horizontal line to each one of the 5 graphs with a single value, v=1573
 
Any idea will be welcome
 
Paulo

________________________________

De: r-help-bounces@r-project.org em nome de Jim Lemon
Enviada: ter 13-05-2008 10:56
Para: r-help@stat.math.ethz.ch
Assunto: Re: [R] Random number generation



On Behalf Of Esmail Bonakdarian wrote:
 > ...
 > What I read doesn't seem to be incorrect however (it may even
 > have been an archived message here), the *language* itself
 > does not seem to support block *comments*. Using conditional
 > constructs, or an IDE/editor to achieve similar results is a
 > work around - but not the same. I don't mean to nitpick, but
 > as a computer scientist I see this as different :-)

For those using NEdit, the R block comment macro:

replace_in_selection("^","#","regex")

and the corresponding R block uncomment macro:

replace_in_selection("^#","","regex")

are both trivial. Just highlight the block and detonate the macro.

Jim

______________________________________________
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.



	[[alternative HTML version deleted]]

