[R] Latex using expression

Henrique Dallazuanna wwwhsd at gmail.com
Tue Sep 22 18:38:35 CEST 2009


Try this:

plot(x, y, xlab=expression(x=sqrt(x[0], 4)),ylab=expression(y=sqrt(x[0], 4)))

On Tue, Sep 22, 2009 at 1:07 PM, amor Gandhi <amorigandhi at yahoo.de> wrote:
> Hi all,
>
> I would like to write the following latex code in a plot x=\sqrt[4]{x[0]} using
>
> x0 <- rgamma(1000,2,1)
> y0 <- rgamma(100,2,1)
> x <- x0^0.25
> y <- y0^0.25
>  plot(x, y,xlab=expression(x=sqrt[4]{x[0]}),ylab=expression(y=sqrt[4]{y[0]}))
>
> Many thanks,
> Amor
>
>
>
>
>        [[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.
>
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O




More information about the R-help mailing list