s-news
[Top] [All Lists]

adding text

To: s-news@lists.biostat.wustl.edu
Subject: adding text
From: Erin Hodgess <hodgess@gator.dt.uh.edu>
Date: Sun, 1 Jul 2007 18:15:50 -0500
Hi Dean!

I'm not sure if you can use the "text" command as nicely as
you might think unless you have the x and y limits fixed.

However, this might be useful:
Hi Dean 


Since you are running from a script, the "text" command may not
be what you would like.

Here's something that may help:

for(i in 1:5) {
        x <- 1:25
        y <- rnorm(25)
        plot(x,y)
        a <- paste("Test stuff\n Intercept = ", lm(y~x)$coef[1])
        title(a)
        }

This will put your results in your title.

Hope this helps!

sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgess@gator.uhd.edu


From: "Dean Monroe" <dean.monroe@okstate.edu>
To: "'s-news'" <s-news@lists.biostat.wustl.edu>

 

I am running a series of analytical steps which produce a block of plots for
quick inclusion into a document from the script layout.  I would like to add
text to the plot such that I have a description and result.  For instance, 

 

Intercept = 0.53

 


<Prev in Thread] Current Thread [Next in Thread>
  • adding text, Erin Hodgess <=