[R] Can I increase the size of an asterisk in plotmath()?

Rolf Turner r.turner at auckland.ac.nz
Fri Jul 1 04:50:56 CEST 2016


On 01/07/16 01:28, Sarah Goslee wrote:
> I don't know of an automatic way, but of course you can make it as
> large as you'd like.
>
>
> plot(1:10, type="n")
> text(2, 8, expression(paste(bolditalic(p)^"*"))) #Rolf's original
> text(2, 6,expression(paste(bolditalic(p),"*", sep = ""))) #Goran's suggestion
>
>
> text(2, 3, expression(paste(bolditalic(p)^"*"))) # repeat Rolf's original
> text(locator(1), "*", cex=3) # click on the asterisk: how big do you want it?

That's certainly a possibility, but it requires interactive use, which I 
would like to avoid.  Ideally I would like a solution that is completely 
"code-able".

Thanks.

cheers,

Rolf


-- 
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276



More information about the R-help mailing list