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

Paul Murrell paul at stat.auckland.ac.nz
Fri Jul 1 00:51:20 CEST 2016


Hi

There are a couple of plotmath expressions that control text size, plus 
in this case you could just drop the superscripting (which I believe was 
Goran's advice) ...

plot(1:10, type="n")
text(2, 8, expression(paste(bolditalic(p)^"*"))) #Rolf's original
text(2, 6, expression(paste(bolditalic(p)^textstyle("*"))))
text(2, 4, expression(paste(bolditalic(p)*"*")))

Paul

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?
>
> Sarah
>
> On Thu, Jun 30, 2016 at 4:46 AM, Rolf Turner <r.turner at auckland.ac.nz> wrote:
>> On 30/06/16 19:38, Göran Broström wrote:
>>>
>>> Rolf,
>>>
>>> text(7.5,2.5,expression(paste(bolditalic(p),"*", sep = "")))
>>>
>>> looks quite nice. On my Mac at least.
>>
>>
>> <SNIP>
>>
>> Well, it didn't look nice on my laptop.  The asterisk was nearly invisible.
>>
>> cheers,
>>
>> Rolf
>>
>
> ______________________________________________
> R-help at r-project.org 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.
>

-- 
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/



More information about the R-help mailing list