On 02/01/2016 11:52 AM, Fisher Dennis wrote:
R 3.2
OS X

Colleagues

Yesterday, I asked:
        I have a polymath label for a graphic:
                bquote(AUC[0-infinity]~(ng/ml~x~hours))
        I would like the “x” to be replaced with a bullet.

David Winsemius provided an answer:
        %.%
(which is also known as “cdot”)

That works but the dot is small — I would prefer something bolder.
Further searching led to the following:
        plot(1, xlab="\u25CF")

Now I can’t figure out how to incorporate
        \u25CF
into the original command (to replace the “x” below):
        bquote(AUC[0-infinity]~(ng/ml~x~hours))

As much as I enjoy plotmath, it remains a bit of a mystery to me.  Any advice 
would be appreciated.

Just replace x with "\u25CF" (including the quotes). You do need to be a little careful here: not all graphics devices support all Unicode characters. That one works on my OSX system running in RStudio, but you didn't say what particular output format you wanted, so you'll need to check it yourself.

Duncan Murdoch

______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
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