Description Usage Arguments Value Examples
Segment plot, showing an arrow from x to xend for each value of y
1 2 3 | segment_plot(dat, n = 20, unit = "", xtitle = "", line_width = 3,
arrow_size = 7, plot_bgcolor = "#ECF0F5",
paper_bgcolor = "#FCFCFC")
|
dat |
tibble with columns label (values for the y axis), x and xend (these two have to be numeric) |
n |
integer. If positive, # of labels with the largest change to plot. If negative, # of labels with the smallest change to plot |
unit |
char, units to be shown in the hoverplates |
xtitle |
x-axis title |
line_width |
line width |
arrow_size |
arrow size |
plot_bgcolor |
plot background color |
paper_bgcolor |
plot paper color |
plotly object
1 | #
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.