ArrowAnnot: Plot arrow on plotly graph

View source: R/ArrowAnnot.R

ArrowAnnotR Documentation

Plot arrow on plotly graph

Description

ArrowAnnot create a list of list of parameter which will be useful in the layout function for a plotly graph. The aim is to print an arrow on the plotly graph, because we loose the arrow of geom_segment when we use plotly. This create a parameter list for each vector of your data, whether your have one vector or any number.

Usage

ArrowAnnot(data, d = 10)

Arguments

data

is a data.frame of four columns, containing the coordinates of the depart point (xd, yd) and the arrival point (xe, ye) of each vector you want to print (at least one)

d

A numeric parameter corresponding to the Startstandoff parameter; allow to display the arrow with a specific length

Value

a list of list containing the parameter for the layout function

See Also

ggplotly and layout


mgerault/pRolocExtra documentation built on Sept. 15, 2022, 9:26 a.m.