Changelog
Source:NEWS.md
deweather (development version)
Bug fixes
Fixed an issue where
buildMod()
would fail if there wasn’t a character variable (e.g., “weekday”).Added
ylab
back as an explicit option forplotPD()
.prepData()
will now formally error ifmydata$date
is numeric/character/factor (i.e., not a date/datetime).Fixed a bug where
plotPD()
would work differently if the input tobuildMod()
was adata.frame
rather than atibble
.
deweather 0.7.2
Breaking changes
All functions which expect a deweather object now use the argument name
dw_model
for consistency.The default values for
vars
in any model-building function now uses “air_temp” over “temp”. This brings it in line withroad_data
and worldmet outputs.gbm.interactions()
has been renamedgbmInteractions()
for consistency with other functions.gbmInf()
has been renamedplotInfluence()
to be more descriptive and consistent with other plotting functions.plotAllPD()
has been combined withplotPD()
and has therefore been removed.dat
is no longer exported. Users should useroad_data
to demo deweather functions.
New features
-
plotPD()
now holds all the functionality for plotting partial dependency plots, deprecatingplotAllPD()
. (#12)By default, all partial dependencies are plotted (similar to
plotAllPD()
). Thevariable
argument allows users to specify specific variables (similar to the oldplotPD()
). Multiple variables can be provided.The
col
argument controls the colour of the PD plots. If multiple colours are specified, they are repeated until all variables have been visualised.The
polar.wd
argument will optionally show the wind direction PD on polar coordinates.
-
plotInfluence()
(previouslygmbInf()
) has gained two new arguments:sort
(defaults toTRUE
) will sort the variables by their mean influence, ordering the values on the y-axis.col
controls the colours. Users can specifyvar
(which makes each bar a different colour) ormean
(which colours by the x-axis values).
Many plotting functions have received the
plot
argument to suppress printing their plots, bringing deweather in line with recent versions of openair.testMod()
invisibly returns its table of statistics along with its plot. (#9)testMod()
now prints one plot and one table rather than one plot and two tables. This ensures the printed plot will be less distorted.The lists returned by
plotPD()
are now named, making them easier to index. (#10)deweather model objects now have nicer
print()
,plot()
,head()
,tail()
andsummary()
methods.
Bug fixes
-
diurnalGbm()
now no longer plots extra 2-way graphs as it performs its internal calculations.
deweather 0.7-1
- First development version of deweather.