s-news
[Top] [All Lists]

Adding Results to a Graph

To: s-news@lists.biostat.wustl.edu
Subject: Adding Results to a Graph
From: "Overstreet, Jason (FL51)" <Jason.Overstreet@honeywell.com>
Date: Mon, 19 Dec 2005 08:13:30 -0700

I have created some boxplots and a histogram that are contained within a function that I created.  I would like to show the results of some calculations in on the graphs.  I have read how to add text, but I don't read anywhere how do put other output on there.  I was thinking that if I could convert lists, vectors, etc. as text, then I could add it that way. 

For example suppose you have:

x <- rnorm(100, 0, 1)

#Then you created a function called Box.Sum that does the following

Box.Sum <-  function (x)

{

boxplot(x)

summary (x)

}

Any thoughts?






Jason Overstreet

Statistician

Honeywell DSES

(727) 539-3964

<Prev in Thread] Current Thread [Next in Thread>