segment_plot: segment_plot

Description Usage Arguments Value Examples

View source: R/segment.R

Description

Segment plot, showing an arrow from x to xend for each value of y

Usage

1
2
3
segment_plot(dat, n = 20, unit = "", xtitle = "", line_width = 3,
  arrow_size = 7, plot_bgcolor = "#ECF0F5",
  paper_bgcolor = "#FCFCFC")

Arguments

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

Value

plotly object

Examples

1
#

rushkin/bitsandends documentation built on Oct. 21, 2020, 11:43 a.m.