create_diamond: Create a set of 'x' and 'y' coordinates that form a diamond....

View source: R/create-shapes.R

create_diamondR Documentation

Create a set of x and y coordinates that form a diamond. This function is a wrapper on create_rectangle() above

Description

Create a set of x and y coordinates that form a diamond. This function is a wrapper on create_rectangle() above

Usage

create_diamond(height, width, center = c(0, 0))

Arguments

height

The vertical height of the diamond

width

The horizontal width of the diamond

center

The center coordinates of the diamond

Value

A data frame containing the points needed to draw the specified diamond


sportsdataverse/sportyR documentation built on Feb. 17, 2024, 9:44 p.m.