draw_soccerpitch: Ggplot2 Soccer Field Markings

Description Usage Arguments Author(s)

View source: R/draw_soccerpitch.R

Description

Ggplot2 Soccer Field Markings

Usage

1
2
3
draw_soccerpitch(xmin = 0, xmax = 100 * 2/3, ymin = 0, ymax = 100,
  thickness = 1.5, markings = "full", palette = "classic",
  layout = "landscape", portion = "full")

Arguments

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.

Author(s)

Robert Hickman


RobWHickman/ggsportsfield documentation built on Oct. 8, 2020, 6:38 a.m.