VasoGene
VasoGene

Reputation: 141

Superscript/subscript in R

I would like to have on a plot the following:

enter image description here

I am using this code, but I don't get the expected outcome.

text(4.4,0.5, expression(paste(P[B6.Rag^"-/-"_NOD.Rag^"-/-"], "=2.9x10^-4")), cex = 1.3)

Thanks

Upvotes: 0

Views: 4006

Answers (1)

Spacedman
Spacedman

Reputation: 94192

How does this look?

plot(1:10, type="n");
text(5,5, expression(P[`B6.Rag-/-_NOD.Rag-/-`] == 2.8 %*% 10^-4), cex = 1.3)

enter image description here

Upvotes: 4

Related Questions