R/draw_barchart.R
draw_dumbbell.Rd
Plot dumbbell chart.
draw_dumbbell( data, x = NULL, y1 = NULL, y2 = NULL, topn = 20, sort = "insc", legend = NULL, cols = c("#006400", "#b32134"), main = "" )
A data frame contains data to be plotted.
A category variable in data.
Variable indicate start point.
Variable indicate end point.
Top n values to be plotted.
Sort options.
Legends.
Colors of the start and end points.
Main title of the plot.
A dumbbell plot.