[R] add horizontal line "(ABLINE(V=))" to xyplot lattice

From: pecardoso <pecardoso_at_netcabo.pt>
Date: Tue, 13 May 2008 11:12:01 +0100

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_at_r-project.org em nome de Jim Lemon Enviada: ter 13-05-2008 10:56
Para: r-help_at_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_at_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]]



R-help_at_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. Received on Tue 13 May 2008 - 10:28:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 13 May 2008 - 10:30:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive