s-news
[Top] [All Lists]

drawing in outer margin

To: "S_question (E-mail)" <s-news@lists.biostat.wustl.edu>
Subject: drawing in outer margin
From: "Prins, N.H. (Klaas)" <klaas.prins@organon.com>
Date: Fri, 24 Jan 2003 14:35:16 +0100
Hi,

Using 6.1 (XP) I want to draw lines outside the outer margin, how to go
about this?

example:
x<-data.frame(matrix(0,ncol=2,nrow=100))
names(x)<-c("x","y")
par(mfrow=c(1,2),oma=c(7,4,5,3),mar=c(4,5,3,3)+.1)
x$x<-seq(1,100,1)
x$y<-x$x^3
plot(x$x,x$y);plot(x$x,x$y)
res<-loess.smooth(x$x,x$y)
lines(res$x,res$y,col=8)
mtext(outer=T,side=1,srt=0,paste("loess smooth"),adj=0.5,cex=0.7,line=1.5)

## now I want a red line next to the text "loess smooth"


thanks for any help

Klaas
--------------------------------------------------------------------
This message, including attached files, may contain confidential
information and is intended only for the use by the individual
and/or the entity to which it is addressed. Any unauthorized use,
dissemination of, or copying of the information contained herein is
not allowed and may lead to irreparable harm and damage for which
you may be held liable. If you receive this message in error or if
it is intended for someone else please notify the sender by
returning this e-mail immediately and delete the message.
--------------------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>
  • drawing in outer margin, Prins, N.H. (Klaas) <=