geom_velocity: Plotting velocity

Description Usage Arguments

Description

Plotting velocity

Usage

1
2
3
geom_velocity_arrow(mapping = NULL, stat = stat_velocity_grid(),
  arrow = ggplot2::arrow(length = ggplot2::unit(0.2, "cm")), ...,
  data = construct_get_velocity_info(stat), show.legend = NA)

Arguments

mapping

Set of aesthetic mappings created by aes() or aes_(). If specified and inherit.aes = TRUE (the default), it is combined with the default mapping at the top level of the plot. You must supply mapping if there is no plot mapping.

stat

Where to place the arrows, such as for every cell (stat_velocity_cells()) or using a grid (stat_velocity_grid())

arrow

specification for arrow heads, as created by arrow().

...

Other arguments passed on to layer(). These are often aesthetics, used to set an aesthetic to a fixed value, like colour = "red" or size = 3. They may also be parameters to the paired geom/stat.

data

A function created by construct_get_velocity_info()

show.legend

logical. Should this layer be included in the legends? NA, the default, includes if any aesthetics are mapped. FALSE never includes, and TRUE always includes. It can also be a named logical vector to finely select the aesthetics to display.


dynverse/dynplot2 documentation built on July 2, 2019, 12:18 a.m.