Rolf Turner
2016-Jun-30 08:46 UTC
[R] Can I increase the size of an asterisk in plotmath()?
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 -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276
Sarah Goslee
2016-Jun-30 13:28 UTC
[R] Can I increase the size of an asterisk in plotmath()?
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 >
Paul Murrell
2016-Jun-30 22:51 UTC
[R] [FORGED] Re: Can I increase the size of an asterisk in plotmath()?
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/
Rolf Turner
2016-Jul-01 02:50 UTC
[R] Can I increase the size of an asterisk in plotmath()?
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