quiverPlot: Plot of velocity field

Description Usage Arguments Value

Description

This function takes in a 4-column data frame that contains the requisite data on a velocity field, where each row is a vector in space which has an x and y position and an x and y velocity component. It returns a ggplot object.

Usage

1
quiverPlot(frameData, arrowl, colormapped = F)

Arguments

frameData

A 4-column data frame consisting of (from left to right) the x position, y position, x-component, and y-component of the velocity.

arrowl

A scalar multiple to apply to the velocity components, for visualization.

colormapped

If F, plot as arrow line segments. Else, plot as color heatmap.

Value

A ggplot2 object that is the plot of the velocity field.


MirceaDavidEsc/Collective documentation built on May 6, 2019, 7:23 a.m.