s.gov
cc
05/18/2009 10:45 r-help@r-project.org
AM ASTSubject
Re: [R] Superscripts and subsc
Hi Steve,
you need to use the expression() function. I think it is described under
?plotmath. Defo works with mtext, not sure about ylab.
try
ylab(text=c(expression(paste("Hatched Eggs R"^{2}
etc.
- Original Message -
From:
To:
Sent: Monday, May 18, 2009 3:25 PM
Subject: [R]
Try:
R2 <- -0.18
panel.text(label = bquote(R^2 == .(R2)), ...
On Mon, May 18, 2009 at 10:25 AM, wrote:
>
> I'd like to annotate an xyplot with an R^2 value, but can not find the
> syntax to define the superscript format for the text.
>
> I'd appreciate suggestions,
>
> xyplot(SharkSloughEggs.d
3 matches
Mail list logo