View source: R/visualization.R

gplot3d.arrow | R Documentation |

`gplot3d.arrow`

draws an arrow between two pairs of points.

gplot3d.arrow(a, b, radius, color = "white", alpha = 1)

`a` |
a vector or three-column matrix containing origin X,Y,Z coordinates. |

`b` |
a vector or three-column matrix containing origin X,Y,Z coordinates. |

`radius` |
the arrow radius, in current plotting units. May be a vector, if multiple arrows are to be drawn. |

`color ` |
the arrow color. May be a vector, if multiple arrows are being drawn. |

`alpha` |
alpha (transparency) value(s) for arrows. (May be a vector.) |

`gplot3d.arrow`

draws one or more three-dimensional "arrows" from the points given in `a`

to those given in `b`

. Note that the "arrows" are really cones, narrowing in the direction of the destination point.

None.

Carter T. Butts buttsc@uci.edu

`gplot3d`

, `gplot3d.loop`

, `rgl.primitive`

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.