Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8764893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:08:48+00:00 2026-06-13T16:08:48+00:00

How can i write H2o in the title of a plot? H2 works: plot(main=expression(H[2]),0)

  • 0

How can i write H2o in the title of a plot?

H2 works:

plot(main=expression("H"[2]),0)

H2O fails:

plot(main=expression("H"[2]"O"),0)

This solution will work only, if i have a space in front ” “

plot(main=expression(" "*H[2]*"O"),0)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:08:50+00:00Added an answer on June 13, 2026 at 4:08 pm

    You were close. This works:

    plot(1:10, main = expression(H[2]*O))
    

    The reason for this is that the 2 is a subscript to element H and you want to position element O next to the H. The notation x * y in an expression means juxtapose x with y, i.e. place x and y together. See ?plotmath for more.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

irb can write command history to a file, but it only does this when
So I know I can write my own HTML-encoding function like this: function getHTMLEncode(t)
We can write the same statement in two different ways as follows. I have
I can write a function this way in Objective-C. This can be used to
I think I can write a QObject like this by taking advantage of the
We can write a java program with one non-public class containing a main method
You can write like this: int test[] = {1,2,3,4}; but what if you want
I can write some links: <p>This value is 23456. <a class=edit href=# custom-data=2356>Edit</a></p> <p>This
How can write this query widout CTE? with cte as( select FK#GharardadeAsli,MAX(PK#Shenase) as PK#Shenase,Max(TarikheSabt)
I can write the code like this: str match { case s if s.startsWith(!!!)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.