[R] Additional polymath query

Duncan Murdoch murdoch.duncan at gmail.com
Sat Jan 2 18:39:31 CET 2016

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

More information about the R-help mailing list