Skip to content
Prev 326187 / 398502 Next

Male and female signs as subscript in plot

On Jul 1, 2013, at 12:40 AM, Prof Brian Ripley wrote:

            
After discovering in the documentation for ?points, ?plotmath, and ?Hershey that Hershey fonts which do support astrologic symbols cannot be used in plotmath expressions, my suggestion for a work-around is to use plotmath with a phantom() call ofappropriate length in the expression and then two calls to text with xpd=TRUE:

text( locator(1), "\\VE", vfont=c("sans serif","bold"), xpd=TRUE)  # Venus
text( locator(1), "\\MA", vfont=c("sans serif","bold"), xpd=TRUE)  # Mars

I suppose this might work with approapriate modifications to the positioned parameters of that function.
Agree with Prof Ripley. If you are a bit slow as am I, it may take 3 or 4 readings.
--

David Winsemius
Alameda, CA, USA