I have this dataframe
public <- data.frame( stringsAsFactors = FALSE, V1 = c(1L, 3L, 5L, 6L, 8L), V3 = c(2743L, 3397L, 3935L, 3993L, 4979L) )
I do this to get a line chart:
ggplot(data = public) + aes(x = V1, y = V3, group = 1) + geom_line(color="grey", size=1.2, alpha=0.5)
I get this:
I'm trying to get the x-axis to show me only and exclusively 1, 3, 5, 6, 8, on a continuous basis, without showing intermediate steps. Something like this:
I hope it is clear what I want to do. Thanks all.