To show months as Jan 2017 Feb 2017 etc:
scale_x_date(date_breaks = "1 month", date_labels = "%b %Y")
Angle the dates if they take up too much space:
theme(axis.text.x=element_text(angle=60, hjust=1))
More Related Contents:
- Show percent % instead of counts in charts of categorical variables
- Construct a manual legend for a complicated plot
- Plot multiple lines in one graph [duplicate]
- Error: package or namespace load failed for ggplot2 and for data.table
- How to install development version of R packages github repository
- Reverse order of discrete y axis in ggplot2
- How to add legend to ggplot manually? – R [duplicate]
- Combining Bar and Line chart (double axis) in ggplot2
- ggplot side by side geom_bar()
- Understanding dates and plotting a histogram with ggplot2 in R
- R: ggplot2, can I set the plot title to wrap around and shrink the text to fit the plot?
- ggplot – Multiple legends arrangement
- ggplot2 shade area under density curve by group
- How to add frequency count labels to the bars in a bar graph using ggplot2? [duplicate]
- How to italicize part (one or two words) of an axis title
- Group data and plot multiple lines
- How to add multiple captions in ggplot2 outside of the main graph area
- Add secondary X axis labels to ggplot with one X axis
- if else condition in ggplot to add an extra layer
- Change the default colour palette in ggplot
- Combining `expression()` with `\n`
- Remove facet_wrap labels completely
- How to label a barplot bar with positive and negative bars with ggplot2
- ToolTip when you mouseover a ggplot on shiny
- ggplot2: Fix colors to factor levels
- How to automatically adjust the width of each facet for facet_wrap?
- Is it possible to jitter two ggplot geoms in the same way?
- Draw lines between different elements in a stacked bar plot
- Adding percentage labels on pie chart in R
- show multiple plots from ggplot on one page in r