draw_triangle {tidycharts}R Documentation

Draw triangle and append it to svg string

Description

Draw triangle and append it to svg string

Usage

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


[Package tidycharts version 0.1.3 Index]