[R] Urgent query

David Winsemius dwinsemius at comcast.net
Wed Sep 2 20:44:04 CEST 2015


On Sep 2, 2015, at 8:21 AM, Romana Shehla wrote:

> Sir/Madam,
> 
>          I am a scholar at Aligarh Muslim University and have been
> continuously using R language. Recently, I am stuck on labeling axis of the
> graphic, I have made. Actually, I want to use mathematical notation
> 0<beta<1 at the axis. I know how to write the greek letter but I am unable
> to show the interval (0,1) .  I would be really grateful if you could help
> me with this problem.
> Waiting for your reply

plot(1,1, xlab=expression( 0 *"<"* beta  *"<"* 1  ) )

I originally tried:

plot(1,1, xlab=expression( 0 < beta  < 1  ) )

.... But it throws an error because the is not a syntactically correct R expression, so I switched to using text versions of the symbols.

-- 

David Winsemius
Alameda, CA, USA



More information about the R-help mailing list