create_square: Create a set of 'x' and 'y' coordinates that form a square....

View source: R/create-shapes.R

create_squareR Documentation

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

Description

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

Usage

create_square(side_length, center = c(0, 0))

Arguments

side_length

The length of the side of the square

center

The center coordinates of the square

Value

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


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