Reputation: 219
I'm using this code in R to graph the following variables:
> ggplot(NDVI, aes(x = Mision, y= MEAN))+
+ geom_point(stat = "summary")
which produces the following plot:
As you can see, the x-axis shows a point in time where NDVI for the crop was evaluated. However, it does not display the full set of numbers (1 - 8). It's displaying only the even numbers. How do I tell ggplot that I want the x axis to show the lables for all of the missions?.
The x axis corresponds to a discrete set of numbers. We performed multiple missions where we collected data and each mission was labeled 1 - 8; missions 2 and 5 do not have data because on those sorties there was not data collected.
This is my data: https://github.com/escalante-cr/NDVI_calculation
Upvotes: 0
Views: 180
Reputation: 375
Adding this to the end of your code will do the trick:
+ scale_x_continuous(breaks = c(seq(8)))
Upvotes: 1