Date-time

  • Assuming you have appropriately formatted data mapped to the x aesthetic, ggplot2 will use scale_x_date() as the default scale for dates and scale_x_datetime() as the default scale for date-time data.

  • We’ve seen a few useful transformations througout like: scales::breaks_pretty() which creates “pretty” breaks for date/times.