I'm graphing some data and want tick marks on the x-axis of my plot. My data looks like:
publication labels percentage
1 foo 0 .4572
2 foo 1 .0341
3 foo 2 .09478
4 foo 3 .0135
5 bar 0 .7442
6 bar 1 .2847
in which each name has labels from 0 to 9.
My code looks like:
ggplot(aes(y = percentage, x = labels, color = publication), data = labelsdf)+
geom_point(size = 3)+
scale_x_discrete(breaks = c(0,1,2,3,4,5,6,7,8,9),
labels = c('1','2','3','4','5','6','7','8','9','10'))
But my graph looks like:
There weren't any tick marks without the breaks or labels specified either. Why aren't my ticks appearing?




ggplot2are you using?? - Prradeppublicationcolumn or vector is not present - Prradep