powered by
Graphing function to make lollipop bar graphs
lollipop(df, y_var, x_var, colorme)
a `ggplot` class graph with horiztontal bars with circles at the end of the bars
dataframe source to graph
variable for Y
variable for X
color to make the bars
library(dplyr) df.example <- dplyr::tribble(~name, ~rate, "Nina",32,"David",65) lollipop(df = df.example, x_var = name, y_var = rate, colorme = "pink" )
Run the code above in your browser using DataLab