underlined: Underlined text

Description Usage Arguments Details

View source: R/underlined.R

Description

Add underlined text to a plot.

Usage

1
underlined(x, y, label, cex = 1, ...)

Arguments

x

X-axis position for text.

y

Y-axis position for text.

label

Text to be plotted.

cex

A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default. See '?par'.

...

Further arguments to be passed to text().

Details

This is a workaround to get unerlined text on a plot. This is edited from a post by Uwe Ligges at https://tolstoy.newcastle.edu.au/R/help/02a/0471.html.

It will not work if the text is at an angle (i.e. srt != 0), or if the axis is on a log scale.


ellisztamas/arghqtl documentation built on March 18, 2021, 9:44 p.m.