rstudio / dygraphs

R interface to dygraphs
http://rstudio.github.io/dygraphs
Other
364 stars 194 forks source link

display quaterly data time axis as (Q2 1965, Q3 1965, etc.) #225

Open GregorDeCillia opened 5 years ago

GregorDeCillia commented 5 years ago

Hello,

According to the NEWS site, version 1.1.1.4 of this package introduced "Handle display of quarterly scales via moment-quarter plugin" (also see the corresponding merge). I expected the display methods to have the form Q2 1965, Q3 1965 and so on. Instead, the first month of the quarter is displayed at the time axis.

Is this behavior expected? If so, is there a way to switch to the formating described in the moment-fquarter README?

Here is a repex where JohnsonJohnson (from the datasets package) is displayed with a dygraphs widget through the RStudio viewer pane.

dygraphs::dygraph(JohnsonJohnson)

image