click_text | R Documentation |
R
graphicsAdd text and expressions anywhere in a plot (including margins) with mouse click(s).
click_text(expr, ...)
expr |
a character string of text or an |
... |
additional graphical parameters passed to |
(Invisibly) a vector of length two with the x- and y-coordinates of the text.
click_shape
; plotmath
for help with plotting
mathematical expressions
## Not run:
plot.new()
click_text('hello', col = 'red', cex = .5)
click_text('goodbye', family = 'HersheyScript', cex = 3)
click_text(expression(sum(x ^ 2) == 5 ^ hat(x)), srt = 45)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.