Hi all, how can I manually create a data.frame or similar object to display in a textplot, that omits column and row numbers/headings? Also, how can I combine several variables in text i.e. suppose I have a <- "one" b <- "two" then what expression can I place in title(main=...) in terms of a and b to give an output title of "one, two" i.e. a then b separated by a comma. Thanks -- View this message in context: http://r.789695.n4.nabble.com/Combining-two-variables-in-text-tp2716916p2716916.html Sent from the R help mailing list archive at Nabble.com.
In the date.frame/ text plot, would it be possible to change the font size of one of the lines? Thanks -- View this message in context: http://r.789695.n4.nabble.com/Combining-two-variables-in-text-tp2716916p2716931.html Sent from the R help mailing list archive at Nabble.com.
try this: a <- "one" b <- "two" paste(a, b, sep = ", ") I hope it helps. Best, Dimitris On 9/28/2010 12:12 PM, trb1 wrote:> > Hi all, > > how can I manually create a data.frame or similar object to display in a > textplot, that omits column and row numbers/headings? > > Also, how can I combine several variables in text > i.e. suppose I have > a<- "one" > b<- "two" > then what expression can I place in > title(main=...) > in terms of a and b to give an output title of > "one, two" > i.e. a then b separated by a comma. > > Thanks > >-- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014
trb1 <thomasrbolton at yahoo.co.uk> [Tue, Sep 28, 2010 at 12:12:01PM CEST]: [...]> Also, how can I combine several variables in text > i.e. suppose I have > a <- "one" > b <- "two" > then what expression can I place in > title(main=...) > in terms of a and b to give an output title of > "one, two" > i.e. a then b separated by a comma. >Type ?paste at the prompt. -- Johannes H?sing There is something fascinating about science. One gets such wholesale returns of conjecture mailto:johannes at huesing.name from such a trifling investment of fact. http://derwisch.wikidot.com (Mark Twain, "Life on the Mississippi")
Also ?sprintf for another approach. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.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 Johannes Huesing > Sent: Tuesday, September 28, 2010 5:25 AM > To: r-help at r-project.org > Subject: Re: [R] Combining two variables in text > > trb1 <thomasrbolton at yahoo.co.uk> [Tue, Sep 28, 2010 at 12:12:01PM > CEST]: > [...] > > Also, how can I combine several variables in text > > i.e. suppose I have > > a <- "one" > > b <- "two" > > then what expression can I place in > > title(main=...) > > in terms of a and b to give an output title of > > "one, two" > > i.e. a then b separated by a comma. > > > > Type ?paste at the prompt. > > -- > Johannes H?sing There is something fascinating about > science. > One gets such wholesale returns of > conjecture > mailto:johannes at huesing.name from such a trifling investment of fact. > http://derwisch.wikidot.com (Mark Twain, "Life on the > Mississippi") > > ______________________________________________ > 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.