0

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

VasoGene
  • 141
  • 3
  • 12

1 Answers1

4

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

Spacedman
  • 92,590
  • 12
  • 140
  • 224
  • The help for `plotmath` is useful here - and should show you all the possibilities, except I don't see the use of back-quotes to put things into expressions... – Spacedman Apr 05 '16 at 16:51