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
Hi Rolf, A bit of poking around reveals that different fonts have different size asterisks. If you are not already using Times Roman, it might be worth a look. I only have Windows on this (work) PC, so I can't check the Postscript fonts. Jim On Fri, Jul 1, 2016 at 12:50 PM, Rolf Turner <r.turner at auckland.ac.nz> wrote:> 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 > > ______________________________________________ > 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.
Rolf Turner
2016-Jul-01 03:58 UTC
[R] Can I increase the size of an asterisk in plotmath()?
On 01/07/16 15:29, Jim Lemon wrote:> Hi Rolf, > A bit of poking around reveals that different fonts have different > size asterisks. If you are not already using Times Roman, it might be > worth a look. I only have Windows on this (work) PC, so I can't check > the Postscript fonts.Thanks Jim. cheers, Rolf -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276