[R] R: string connections
Roger D. Peng
rpeng at jhsph.edu
Wed Sep 29 15:06:01 CEST 2004
You mean something like?
plot(0,0,main=expression(paste("hello ", theta, " symbol")))
-roger
Emily Knight wrote:
> I had a similar problem, but with trying to join text and an expression.
> What I wanted to print in my title was <text> <expression> <text>
> Paste doesn't work because it just pastes the expression(...) into the string, and I can make the text into an
> expression, but then I don't know how to join 2 expressions together.
> Any ideas?
> Thanks.
> Emily.
>
> On 29 Sep 2004 at 14:10, Dimitris Rizopoulos wrote:
>
>
>>Hi Allan,
>>
>>look at ?paste, e.g.,
>>
>>a <- 10
>>plot(1:10, 1:10, main=paste("The value of a is", a))
>>
>>I hope it helps.
>>
>>Best,
>>Dimitris
>>
>>----
>>Dimitris Rizopoulos
>>Ph.D. Student
>>Biostatistical Centre
>>School of Public Health
>>Catholic University of Leuven
>>
>>Address: Kapucijnenvoer 35, Leuven, Belgium
>>Tel: +32/16/396887
>>Fax: +32/16/337015
>>Web: http://www.med.kuleuven.ac.be/biostat/
>> http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm
>>
>>
>
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
More information about the R-help
mailing list