On Aug 18, 2010, at 6:40 AM, David Hajage wrote:
Hello,
I am using mtext to write some text below a graph:
plot(1)
mtext("foo", side = 1, line = 2, at = seq(0.6, 1.6, 0.2))
I would like to draw something near the "foo" texts, for example a
segment.
For this, I need to know the coordinates of the text ploted by mtext
function.
I spent a few hours to try different combination, using the option
xpd =
TRUE and trying to convert between graphics coordinate system using
grconvertX and grconvertY... But I can't make it.
Is there a way to know the coordinates of the text produce by mtext,
particularly vertical coordinates? For example, how can you draw some
segments to underline each foo in my example?
> plot(1)
> mtext(expression(underline(foo)), side = 1, line = 2, at = seq(0.6,
1.6, 0.2))
Thank you very much for any help.
david
[[alternative HTML version deleted]]
______________________________________________
R-help@r-project.org mailing list
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.
David Winsemius, MD
West Hartford, CT
______________________________________________
R-help@r-project.org mailing list
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.