| orb_text | R Documentation |
Draws a text label at each observation.
orb_text(..., data = NULL, size = 10, colour = NULL, dy = 0, alpha = 1)
... |
Aesthetic mappings for this layer only, as |
data |
Optional data frame overriding the plot data. |
size |
Font size in points. |
colour |
Fixed colour used when the |
dy |
Vertical offset in pixels (negative moves up). |
alpha |
Opacity between 0 and 1. |
An object of class orb_layer.
df <- data.frame(x = 1:3, y = c(2, 4, 3), n = c("a", "b", "c"))
orb(df, x = x, y = y, label = n) + orb_points() + orb_text(dy = -10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.