[R] problem with math expressions in grid graphics when using line breaks (\n)
Mark Heckmann
mark.heckmann at gmx.de
Thu Sep 8 19:20:10 CEST 2011
I want to plot a multiline annotation including a mathematical expression using grid graphics (grid.text).
This works fine for a single line, but the math expression is misplaced when I insert a line break ("\n" escape sequence):
grid.text(expression(paste("Some words here\n more ", sigma)))
Does someone have an idea how to fix that?
TIA!
Mark
–––––––––––––––––––––––––––––––––––––––
Mark Heckmann
Blog: www.markheckmann.de
R-Blog: http://ryouready.wordpress.com
More information about the R-help
mailing list