season 0.3.16.9000
- Added a
NEWS.mdfile to track changes to the package.
New features
- New vignette, “Modelling monthly data”, which demonstrates how to use
createAdj()with the nimble R package. -
autoplot()(the ggplot version of base R’splotmethod) methods added forperi,third,Cosinor,monthglm,Monthmean,nsCosinor, andnonlintestclasses. Each returns a ggplot object that can be extended with+ theme_bw(),+ labs(), etc. (#42, #33). - New
plot_circle()andplot_month()functions return ggplot objects (#42). - added broom tidiers:
tidy(),augment(), andglance()(#39) - Made
ciPhase()return data.frame rather than list() (#43) - Made
invyrfraction_chr()andinvyrfraction_num()to avoid specifyingtext = TRUE/FALSE, and make function use more explicit, (#43) - Made
peri()return a list with columns peri, freq_radians (formerlyf) and freq_cycles - made
sinusoid()return a tibble(), and made an autoplot method - removed cat() print in
wtest()and return atibblenot alist() - For
nscosinor, now optionally specify year and month column name, so you don’t need to have columns specifically named “year” or “month” - they could be “yr”, or “mn” even. #44 - For
casecross, now optionally specify date column name, so you don’t need to have columns specifically named “date”. #44
Deprecations
- The
plotargument ofperi()andthird()is soft-deprecated. These functions now always return a classed object ("peri","third"); useautoplot()to draw the plot. Passingplot = FALSEis also deprecated — just drop the argument (#33). -
plot.Cosinor(),plot.monthglm(),plot.Monthmean(),plot.nsCosinor(), andplot.nonlintest()are soft-deprecated in favour ofautoplot()methods. The base R / ggplot output of the deprecatedplot()methods is unchanged — only the recommended path has moved. - The
plotargument ofplot.nonlintest()is soft-deprecated. -
plotCircle()andplotMonth()are soft-deprecated in favour of new ggplot-returningplot_circle()andplot_month(). The deprecated functions continue to produce their existing output until removal.
All deprecated paths emit a one-time warning per session pointing at the replacement.
Breaking change
-
monthmean()argument,adjmonthmust be one of “none” (default), “thirty”, or “average”, rather than: FALSE, “thirty”, or “average”. -
createAdj()argument,filepathhas been removed, as it is no longer required. -
casecross()argument,usefinalwindownow defaults to TRUE, not FALSE.
