Description Usage Arguments Author(s)
View source: R/draw_bballcourt.R
Ggplot2 Basketball Court Markings
1 2 3 | draw_bballcourt(xmin = 0, xmax = 100 * 2/3, ymin = 0, ymax = 100,
thickness = 1.5, markings = "full", palette = "classic",
layout = "landscape", portion = "full")
|
xmin |
The origin of x for the markings to begin. X is 'across' i.e. along the halfway line |
xmax |
The maximum value of x for the markings to end |
ymin |
The origin of y for the markings to begin. Y is 'along' i.e. up the touchline |
ymax |
The maximum value of y for the markings to end |
thickness |
The thickness of the markings |
markings |
Which markings to plot from the most basic rectangle to full pitch markings |
palette |
The palette to use to colour the field/markings. Standard arguments are classic (the 'natural' colours), bw (a greyscale plot), or blues (darkblue), but custom palettes can be supplied |
layout |
The orientation of the final plot. Defaults to landscape (so coord_flip() s the plot) |
portion |
The portion of the field to plot. Standard arguments are the whole pitch (full) or half-pitch (half) but custom coordinates can be supplied. |
Robert Hickman
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.