I am trying to create a basic lollipop graph and running into issues. I modified some old code that worked to create a lollipop graph on another dataset, but it's not working well on my new dataset.
cms<-subset(centuryscoresletters, school=='CMS')
ggplot(data=cms, aes(x=id, y=mone))
geom_segment( aes(x=id, xend=id, y=0, yend=mone)) +
geom_point( size=3, color="red", fill=alpha("red", 0.3),
alpha=0.7, shape=16, stroke=1) + #shape=15 square, 8=star#
theme_light() #code down here adjusts the background grid#
theme(
panel.grid.major.x = element_blank(),
panel.border = element_blank(),
axis.ticks.x = element_blank()
) +
xlab("") +
ylab("Value of Y")