Skip to content
Back to formatted view

Raw Message

Message-ID: <F5A97ABA-8B6C-4EC7-A40C-B93D724B8CA6@jhsph.edu>
Date: 2006-12-12T16:04:27Z
From: Benilton Carvalho
Subject: expression()
In-Reply-To: <457ED1CF.2060500@ija.csic.es>

mtext(expression(beta[max]), side=1, line=2)

is it what you want?

b

On Dec 12, 2006, at 10:59 AM, javier garcia-pintado wrote:

> Hi,
> I'm trying to use expression() to write a text to a graphic in the  
> margin.
>
> Using:
>
> mtext(expression(beta),side=1,line=2)
>
> writes a perfect beta greek character, but I need to add a subindex
> "max", and I'm trying:
>
> mtext(paste(expression(beta),"max"),side=1,line=2)
>
> simply writes "beta max" in the plot.
>
> Please, Could you tell me what I'm doing wrong?
>
> By the way, is there a way to add Latex expressions to graphics?  
> Then I
> could use the Latex expression: $\beta_{\mathrm{max}}$. This also  
> would
> be very useful for me for more complex expressions in plots.
>
> Best regards,
>
> Javier
>
> -- 
> Javier Garc?a-Pintado
> Institute of Earth Sciences Jaume Almera (CSIC)
> Lluis Sole Sabaris s/n, 08028 Barcelona
> Phone: +34 934095410
> Fax:   +34 934110012
> e-mail:jgarcia at ija.csic.es
>
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.