I am trying to display data over some years and my labels on the x axis overlap each other.
I generate the plot as follows
plotData<-subset(myData,myData$category=="value")
test <- ggplot(plotData, aes(x=date, y=value, group=name))
test + geom_line(aes(color=name))
if I add
+ theme(axis.text.x = element_text(angle=45))
it is slightly better, but still very crowded.
Is there any option to specify how many labels there should be per axis, or an option just to display every 10th label?