Description Usage Arguments Value
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.
1 | quiverPlot(frameData, arrowl, colormapped = F)
|
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. |
A ggplot2 object that is the plot of the velocity field.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.