Add a point figure.
info_text(g, ..., style = NULL, data = NULL) info_image(g, ..., style = NULL, data = NULL) info_arc(g, ..., style = NULL, data = NULL) info_line(g, ..., style = NULL, data = NULL) info_vline(g, ..., style = NULL, data = NULL) info_hline(g, ..., style = NULL, data = NULL) info_abline(g, ..., style = NULL, data = NULL, direction = c(1, 2)) info_region(g, ..., style = NULL, data = NULL) info_region_filter(g, ..., style = NULL, data = NULL) info_marker(g, ..., style = NULL, data = NULL) info_data_region(g, ..., style = NULL, data = NULL) info_shape(g, ..., style = NULL, data = NULL) info_html(g, ..., style = NULL, data = NULL)
g | An object of class |
---|---|
... | Options to pass to the informational annotation. |
style | A list of options defning the style. |
data | A dataset to use with |
direction | Direction of diagonal line. |
info_vline
, and info_hline
use the x
, and y
asp()
for placement.
Official annotation documentation
for defails pon what to pass to ...
, and asp()
.
df <- head(cars, 5) g2(cars, asp(speed, dist)) %>% fig_point() %>% info_text( position = c(20, 35), content = "Look here!" ) %>% info_text( asp(speed, dist), content = "Using aspects", data = df ) g2(cars, asp(speed, dist)) %>% fig_point() %>% info_vline(asp(x = 20)) %>% info_hline(asp(y = 20))