get_xaxis_breaks | R Documentation |
Returns nice major and minor breaks and label format based on timespan of the data
get_xaxis_breaks(dat.tidy)
dat.tidy |
Data to be plotted, in tidy format, as returned by the
function |
If the timespan in the TIMESTAMP
column of dat.tidy
is
less than or equal to 60 days, the major and minor breaks will be every 2
weeks; if time span is greater than 60 days and less than or equal to 120
days, the major and minor breaks will be every month; if time span is
greater than 120 days and less than or equal to 240 days, the major breaks
will be 2 months and the minor breaks will be 1 month; if the time span is
greater than 240 days, the major breaks will be 4 months and the minor
breaks will be 1 month.
Returns a dataframe with 1 observation of 3 variables
date.breaks.major
, date.breaks.minor
,
date.labels.format
.
Danielle Dempsey
Other plot:
get_colour_palette()
,
plot_variables_at_depth()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.