s-news
[Top] [All Lists]

Dumping Matrix/Data.Frame to Graphsheet?

To: <s-news@lists.biostat.wustl.edu>
Subject: Dumping Matrix/Data.Frame to Graphsheet?
From: "Redfearn, Christian" <redfearn@sppd.usc.edu>
Date: Wed, 17 Oct 2007 21:21:37 -0700
References: <010001c80a83$2cd77390$4c1414ac@prosanos.local>
Thread-index: AcgKgSlM2xxr2AnjS/WnKDFpKm9L2gAAS9awAa7BtkA=
Thread-topic: Dumping Matrix/Data.Frame to Graphsheet?
Good Evening,
 
I've written a script that generates a number of graphs.  The script also produces a number of matrices (stored as data frames).  Can I dump/write the data frame to a graphsheet in any simple way?
 
My first ham-handed attempt at this was to generate a placeholder plot and then use the text() function:
 
plot(c(0,1),c(0,1),type="n",xlab="",ylab="",axes=F)  #blank sheet
text(0,1,data.frame) # to post the data -- this chokes, of course.
 
The goal is to dump the pics and data into a single document as efficiently as possible.  I've got a number of these to process and share with coauthors and don't want to mix files (ie, jpegs/eps for the figures, text files for the data).
 
Thanks.
 
Chris.
 
<Prev in Thread] Current Thread [Next in Thread>