Description Usage Arguments Value
View source: R/drawing_utils.R
Draw triangle and append it to svg string
1 2 3 4 5 6 7 8 | draw_triangle(
svg_string,
tip_position_x,
tip_position_y,
orientation = "left",
style = NULL,
translate_vec = c(0, 0)
)
|
svg_string |
svg string to paste a triangle |
tip_position_x, tip_position_y |
x, y position of tip of the triangle |
orientation |
where the triangle should be pointing. One of c('top', 'right', 'bottom', 'left'). |
style |
style of the triangle |
translate_vec |
the translation vector |
svg string
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.