View source: R/geom-lacrosse.R
geom_lacrosse | R Documentation |
ggplot2
instance containing a lacrosse field for a
specified leagueGenerate a ggplot2
instance containing a lacrosse field for a
specified league
geom_lacrosse(
league,
display_range = "full",
field_updates = list(),
color_updates = list(),
rotation = 0,
x_trans = 0,
y_trans = 0,
field_units = NULL,
xlims = NULL,
ylims = NULL
)
league |
The league for which to draw the surface. This is case-insensitive |
display_range |
A case-insensitive string indicating the display range
to use for the plot. The default is The possible display ranges are:
|
field_updates |
A list of updates to the fields' parameters. These will overwrite the parameters of the league |
color_updates |
A list of updates to the fields' default colors, which
are set by |
rotation |
An angle, given in degrees, through which the plot should be rotated |
x_trans |
The amount that the |
y_trans |
The amount that the |
field_units |
The units with which to draw the field. The default is
|
xlims |
The limits on the final display in the |
ylims |
The limits on the final display in the |
A ggplot2
instance with a full-surface representation of a
lacrosse field
## Not run:
geom_lacrosse(league = "NCAA", rotation = 270, display_range = "offense")
geom_lacrosse(league = "FIVB", field_units = "ft")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.