lollipop {MCOE} | R Documentation |
Graphing function to make lollipop bar graphs
lollipop(df, y_var, x_var, colorme)
df |
dataframe source to graph |
y_var |
variable for Y |
x_var |
variable for X |
colorme |
color to make the bars |
a 'ggplot' class graph with horiztontal bars with circles at the end of 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" )