Re: [R] add symbol above letter in R

2014-12-09 Thread Duncan Murdoch

On 09/12/2014 2:28 PM, Zilefac Elvis via R-help wrote:

Hi,

I would like to add a dash (—) on a letter in R.
How can I add a dash on letter P in the following:

mtext(text=expression(Winter(DJF)~mean~daily~precipitation~italic(P)), side=3, line=1, 
cex=1.3, col="black")

?plotmath could not provide an answer to my problem.


But it refers to demo(plotmath), and that's where you could find the 
answer to your question:  use bar().  For example,


mtext(text=expression(Winter(DJF)~mean~daily~precipitation~bar(italic(P))), side=3, 
line=1, cex=1.3, col="black")

Duncan Murdoch

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] add symbol above letter in R

2014-12-09 Thread Zilefac Elvis via R-help
I got the right answer:
mtext(text=expression(Winter(DJF)~mean~daily~precipitation~bar(italic(P))), 
side=3, line=1, cex=1.3, col="black") 
 Thanks.


On Tuesday, December 9, 2014 1:28 PM, Zilefac Elvis  
wrote:
Hi,

I would like to add a dash (—) on a letter in R.
How can I add a dash on letter P in the following:

mtext(text=expression(Winter(DJF)~mean~daily~precipitation~italic(P)), side=3, 
line=1, cex=1.3, col="black")

?plotmath could not provide an answer to my problem.

many thanks for your solutions.

Asong.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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] add symbol above letter in R

2014-12-09 Thread Zilefac Elvis via R-help
Hi,

I would like to add a dash (—) on a letter in R.
How can I add a dash on letter P in the following:

mtext(text=expression(Winter(DJF)~mean~daily~precipitation~italic(P)), side=3, 
line=1, cex=1.3, col="black")

?plotmath could not provide an answer to my problem.

many thanks for your solutions.

Asong.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.