Skip to contents

This function generates labels for quarters in a short format, showing the quarter and year only when it changes from the previous label, similar to scales::label_date_short().

Usage

label_quarters_short()

Value

A function that takes a vector of dates and returns labels in the format "Qx\nYYYY" or "Qn"

Details

This should generally be used in conjunction with breaks that are the dates of the start of a quarter, e.g. as from breaks_quarters().