I have a problem using the discrete scale in ggplot2 in R. The use of
g + scale_x_discrete(breaks=1:7, labels=1:7)
incorrectly changes in limit
p1 + scale_x_continuous(breaks = c(2, 4, 6))