How can I combine text and math expressions in a plot’s title. If I use paste the expression is converted to character. For example I want something like this as a title
$ARL_1$ curve for $S^2$
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You want to read
?plotmathto see how to do this sort of thing. Here is an example:The
[.]is subscript, whilst^gives superscript. The~spaces out the parts of the expression as if there were literal spaces.Edit: normally I would have done:
but that throws an error because
foris being interpreted as the start of afor()loop call.