On Fri, Sep 30, 2011 at 4:31 PM, Durant, James T. (ATSDR/DTEM/PRMSB)
<h...@cdc.gov> wrote:
> Happy Friday fellow R users.
>
> I need some help - I am trying to make a graph using ggplot 2 of some lead 
> isotope ratios. Normally, the isotope mass number appears as a  superscript 
> before the chemical symbol. However, I cannot figure out how to do this 
> ggplot2's axis labels. The closest I have come is using "." In front of the 
> numbers I am superscripting e.g:
>
>
> ggplot(.... 
> +xlab(expression(.^207*"Pb/"*.^206*"Pb"))+ylab(expression(.^208*"Pb/"*.^206*"Pb")

 Stick an empty expression in place of the '.' something like:

expression({}^208*"Pb/"*{}^206*"Pb")

Barry

______________________________________________
R-help@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.

Reply via email to