add_arrow: Add arrow to chess board visualisation

Description Usage Arguments Value

View source: R/add-arrow.R

Description

Add arrow to chess board visualisation

Usage

1
2
3
4
5
6
7
8
add_arrow(
  start,
  end,
  arrow_style = grid::arrow(),
  size = 1.5,
  col = "blue",
  ...
)

Arguments

start

start square for arrow as character (example: "e2")

end

end square for arrow as character (example: "e4")

arrow_style

an arrow specified by grid::arrow()

size

arrow size (line thickness)

col

arrow colour

...

further arguments passed to ggplot2::geom_segment()

Value

A ggplot2 geom_segment() layer


cj-holmes/ggambit documentation built on July 22, 2021, 12:56 p.m.