draw_triangle: Draw triangle and append it to svg string

Description Usage Arguments Value

View source: R/drawing_utils.R

Description

Draw triangle and append it to svg string

Usage

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)
)

Arguments

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

Value

svg string


tidycharts documentation built on Jan. 18, 2022, 5:07 p.m.