Description Usage Arguments Author(s) Examples

The arrows are drawn with directions on the graph that match the directions
indicated by the `u`

and `v`

components. The arrow size is set
relative to the units of the `y`

axis, according to the value of
`yscale`

, which has the unit of `v`

divided by the unit of
`y`

.
The interpretation of diagrams produced by `plotSticks`

can be
difficult, owing to overlap in the arrows. For this reason, it is often
a good idea to smooth `u`

and `v`

before using this function.

1 2 3 |

`x` |
x coordinates of stick origins. |

`y` |
y coordinates of stick origins. If not supplied, 0 will be used; if length is less than that of x, the first number is repeated and the rest are ignored. |

`u` |
x component of stick length. |

`v` |
y component of stick length. |

`yscale` |
scale from u and v to y (see “Description”). |

`add` |
boolean, set |

`length` |
value to be provided to |

`mgp` |
3-element numerical vector to use for |

`mar` |
value to be used with |

`xlab, ylab` |
labels for the plot axes. The default is not to label them. |

`col` |
color of sticks, in either numerical or character format. This is
made to have length matching that of |

`...` |
graphical parameters passed down to |

Dan Kelley

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ```
library(oce)
# Flow from a point source
n <- 16
x <- rep(0, n)
y <- rep(0, n)
theta <- seq(0, 2*pi, length.out=n)
u <- sin(theta)
v <- cos(theta)
plotSticks(x, y, u, v, xlim=c(-2, 2), ylim=c(-2, 2))
rm(n, x, y, theta, u, v)
# Oceanographic example
data(met)
t <- met[["time"]]
u <- met[["u"]]
v <- met[["v"]]
p <- met[["pressure"]]
oce.plot.ts(t, p)
plotSticks(t, 99, u, v, yscale=25, add=TRUE)
``` |

oce documentation built on Oct. 4, 2018, 5:04 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.