Re: [R] Superscript number before letter

From: David Winsemius <dwinsemius_at_comcast.net>
Date: Wed, 04 May 2011 10:30:00 -0700

On May 4, 2011, at 8:43 AM, Richard M. Heiberger wrote:

> David,
>
> That is not clear from the original request. The request was for
> {}^18*O

I see your point. The use of the phantom would also allow a pre- superscript with no preceding "delta". Thanks for bearing with my obtuseness.

-- 
David.


>
> It wasn't for delta^18
> Therefore I put the space there to be sure that the 18 was seen as
> pre-superscript of O,
> not as a post-superscript of delta. I probably should also have
> used ~ as
>
> plot(1:10, xlab=expression(delta~{}^18*"O" * " VSMOW []"))
>
> The original was unclear on [], since it was inside half a set of
> quotation marks.
>
> Rich
>
>
>
> On Wed, May 4, 2011 at 11:01 AM, David Winsemius <dwinsemius_at_comcast.net
> > wrote:
>
> On May 4, 2011, at 7:28 AM, Richard M. Heiberger wrote:
>
> Dos this do what you want?
>
> plot(1:10, xlab=expression(delta*{}^18*"O" * " VSMOW []"))
>
> The specific is to put an empty item there to hold the superscript.
>
> I do not think that is necessary:
>
>
> plot(1:10, xlab=expression(delta^18*O~VSMOW[""]))
>
> (I wasn't sure if the [.] operation was supposed to be a subscript.)
>
> I generally avoid spaces in plotmath expressions and use tildes "~"
> to accomplish any needed spaces. The asterisk "*" is the non-spacing
> separator between elements.
>
>
>
>
> On Wed, May 4, 2011 at 9:37 AM, Janhal <janine.halder_at_unil.ch> wrote:
>
> Salut,
> I have been struggling to superscript the 18 before the O without ^
> visible
> and found only help to superscript numbers after the letter. Thanks to
> anyone who can help.
> xlab=expression(delta*18O VSMOW []")
> Cheers,
> Janine
>
> --
>
> David Winsemius, MD
> Heritage Laboratories
> West Hartford, CT
>
>
David Winsemius, MD Heritage Laboratories West Hartford, CT [[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.

Received on Thu 05 May 2011 - 06:25:12 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 05 May 2011 - 07:00:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive