Hi all, I want to plot a series "x" and I want to put on title "Time evolution with alpha=0.2", e.g., plot(x, main="Time evotion with alpha=0.2",col="orange") Is there any posibility to put the greek letter and avoid written the word? Many thanks in advance. [[alternative HTML version deleted]]
On 20.11.2012 21:47, bgnumis wrote:> Hi all, > > I want to plot a series "x" and I want to put on title "Time evolution with > alpha=0.2", e.g., > > plot(x, main="Time evotion with alpha=0.2",col="orange") > > Is there any posibility to put the greek letter and avoid written the word?Yes, see ?plotmath plot(x, main=expression("Time evotion with " * alpha==0.2), col="orange") Uwe Ligges> Many thanks in advance. > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. >
HI, Try this: plot(1,main= expression(paste("Time evolution with ", alpha,"= 0.2"))) A.K. ----- Original Message ----- From: bgnumis <bgnumis at gmail.com> To: r-help at r-project.org Cc: Sent: Tuesday, November 20, 2012 3:47 PM Subject: [R] Greek letters on title Hi all, I want to plot a series "x" and I want to put on title "Time evolution with alpha=0.2", e.g., plot(x, main="Time evotion with alpha=0.2",col="orange") Is there any posibility to put the greek letter and avoid? written the word? Many thanks in advance. ??? [[alternative HTML version deleted]] ______________________________________________ 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.
Try this: titleline=expression(paste("Time evolution with ", alpha, "=0.2")) plot(x, main=titleline,col="orange") --Mark J. Lamias ________________________________ From: bgnumis <bgnumis@gmail.com> To: r-help@r-project.org Sent: Tuesday, November 20, 2012 3:47 PM Subject: [R] Greek letters on title Hi all, I want to plot a series "x" and I want to put on title "Time evolution with alpha=0.2", e.g., plot(x, main="Time evotion with alpha=0.2",col="orange") Is there any posibility to put the greek letter and avoid written the word? Many thanks in advance. [[alternative HTML version deleted]] ______________________________________________ R-help@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. [[alternative HTML version deleted]]