Learn R Programming

MCOE (version 0.6.0)

lollipop: Graphing function to make lollipop bar graphs

Description

Graphing function to make lollipop bar graphs

Usage

lollipop(df, y_var, x_var, colorme)

Value

a `ggplot` class graph with horiztontal bars with circles at the end of the bars

Arguments

df

dataframe source to graph

y_var

variable for Y

x_var

variable for X

colorme

color to make the bars

Examples

Run this code
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