[R] reading graph metadata text from a file

Bert Gunter gunter.berton at gene.com
Mon Nov 19 23:39:23 CET 2007


... But is I understand correctly,this is certainly straightforward without
textplot,too...

e.g. 
mylegend <- "Some text...\n Some more text"
mytitle <- "This is a title"
plot(0:1,0:1, main = mytitle)
legend(.2,.2,leg=mylegend, bty="n")

Naturally, this could all be "functionized" and the various text arguments
passed as arguments to the function (see ?plot.default or its code); or they
could be components of a list, or ... 
 

Bert Gunter
Genentech Nonclinical Statistics


-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Greg Snow
Sent: Monday, November 19, 2007 2:18 PM
To: Alexy Khrabrov; r-help at r-project.org
Subject: Re: [R] reading graph metadata text from a file

You may want to use the textplot function from the gplots package rather
than the legend.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at intermountainmail.org
(801) 408-8111
 
 

> -----Original Message-----
> From: r-help-bounces at r-project.org 
> [mailto:r-help-bounces at r-project.org] On Behalf Of Alexy Khrabrov
> Sent: Monday, November 19, 2007 1:17 PM
> To: r-help at r-project.org
> Subject: [R] reading graph metadata text from a file
> 
> I'd like to produce graphs with titles, axis labels, and 
> legend as parameters read from a separate text file.  
> Moreover, I'd like to use the legend for a short summary of 
> the data -- not necessarily for describing the line colors 
> per se.  How do we do this?
> 
> Cheers,
> Alexy
> 
> ______________________________________________
> 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.
> 

______________________________________________
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.



More information about the R-help mailing list