- Character vectors in simulated results no more mess up dynamic graphs
- Filtered zeros in obs/sim vectors when they are used as denominator in stat. criteria (=> MAPE and RME no more take Inf values)
- An error is now detected when plots of unknown variables are requested
- Added tests to automatically compare generated graphs with reference ones
- Fixed a few other bugs (missing regression line for scatter plots in some cases, number of labels for shape_sit="txt", ...)
- Changed license to LGPL
- Added the possibility to plot residuals of variables in function of residuals of other variables
-
Fixed warnings generated by last version of ggplot2 due to existing fields provided in aes but that are not actually used (#10).
-
Fixed a bug in plot that occurred when trying to plot several versions of simulated results and without intercrop situations.
-
Fixed cff file generation using github action. Now generated on each commit that modifies the Description file + on release.
-
Minor changes to clean the code following CRAN checks procedure application.
For users:
- Update functions names to be homogeneous across SticsRPacks
- Add a method for
[
for cropr_simulation, i.e. we can now index the output of plots using[
- Deprecate
bind_rows_sim
forbind_rows
- Fix issue in scatter plot with
all_situations = FALSE
to get the situation name as hover in plotly - More documentation
- Compatibility with R >= 4.0.0 + making sure it still works with 3.6.0 <= R < 4.0.0
- Fix issue in
format_cropr
- Fix issue where points and lines were drawn twice
- Fix issue where points were not colored properly
- Fix issue when overlapping (not grouped properly)
- Fix issue where lines were not colored properly
- Fix issue for plots with residuals + custom x variable
- Fix issue with several versions but only one has common values btw obs and sim
Internals:
- Add golden tests (using
{vdiffr}
) - Remove SticsRPacks dependency for tests
- Using third edition of testthat
- Format the code using
{styler}
and{goodpractice}
- Simplify a lot
cat_situations
and make it faaaast - Use the
.id
inbind_rows
if provided - Improved computation of
LCS
to remove a warning
-
Added labels so that situation names appear in ggplotly graphs
-
Fixed bug with successive argument:
- did not work with several lists of situations,
- did not work with observations of only a subset of the situations.
-
Fixed save_plot_pdf function
- Updated README wrt changes in SticsRFiles package
- Fixed position of situation label when using shape_sit = "txt" in scatter plots.
- Add
bind_rows_sim
andsplit_df2sim
helper functions to either bind a list of simulations into a singledata.frame
or to split it back. Works also on observations. summary
can now be grouped by crops. Useful for cases where we have different usms with different crops, and for intercropping.- Rename plot saving functions: plot_save -> save_plot_png & save_plot -> save_plot_pdf
- Fix a bug in the legend when plotting two versions in sole crop without observations (only one legend instead of two). See #8039.
- Graphs of residues are no longer plotted with square axes
- Fix an issue on
extract_plot
for residues plots - Update documentation
- Several little fixes: added quotes on situation to remove a warning,
- All crop models wrapped with CroptimizR can now automatically use CroPlotR.
For that, the sim_list
element of the variable returned by the wrapper must have the attribute cropr_simulation
, please refer to the guidelines for implementing a crop model R wrapper for CroptimizR for more details.
-
some bugs fixed (coloring for model comparison and overlapping variables, absence of Plant columns in obs and/or sim, ...)
-
license changed to CeCILL-C
- First release version, with dynamic plots, scatter plots, statistics.
- Added a
NEWS.md
file to track changes to the package.