how to print "<=" in plot title
For the record, I was wrong -- using plotmath's "less than or equal" does NOT require platform info. However, I was unsure if you meant that it was some kind of an arrow you wanted to render, a clear misinterpretation on my part. -- Bert
On Tue, Jun 28, 2011 at 10:57 AM, array chip <arrayprofile at yahoo.com> wrote:
Thank Peter! How do I make the title in bold font? John ----- Original Message ---- From: Peter Ehlers <ehlers at ucalgary.ca> To: array chip <arrayprofile at yahoo.com> Cc: R <r-help at r-project.org> Sent: Tue, June 28, 2011 10:52:07 AM Subject: Re: [R] how to print "<=" in plot title On 2011-06-28 10:25, array chip wrote:
Hi, how can I print "<=" (I mean the symbol of just one character) in the main
title of a plot?
for example:
plot(1:10, main=paste("x<=", x))
where variable x is some number generated on the fly.
? x <- 2.718 ? plot(0, 0) ? title(bquote( x %<=% .(x) )) ?plotmath Peter Ehlers
Thanks John
______________________________________________ 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.
______________________________________________ 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.
"Men by nature long to get on to the ultimate truths, and will often be impatient with elementary studies or fight shy of them. If it were possible to reach the ultimate truths without the elementary studies usually prefixed to them, these would not be preparatory studies but superfluous diversions." -- Maimonides (1135-1204) Bert Gunter Genentech Nonclinical Biostatistics