Changelog
Source:NEWS.md
FieldSimR 1.1.0
CRAN release: 2023-04-12
Added a
NEWS.mdfile to track changes to the package.Added argument
pos_defto functionrand_cor_matto make bending of a non-positive-definite correlation matrix to a positive-definite matrix optional.Added example data frame
df_error_bivarwith plot errors for two traits across three locations generated usingfield_trial_error.Added example data frame
df_gv_unstrwith simulated genetic values for two traits across three environments generated usingunstr_asr_inputandunstr_asr_output.Added functionality to simulate extraneous variation to
field_trial_error.Added internal functions
spline_interpandfill_matrixto interpolate and extrapolate missing values if some NAs remain after bivariate interpolation.Added
make_phenotypesto create phenotypes through combination of genetic values and plot errors.Added
qq_plotto compare the theoretical quantiles of a normal distribution with the sample quantiles of the distribution of a user-defined effect.Added
sample_variogramto create a variogram of a user-defined effect.Added
theoretical_variogramto create a theoretical variogram.Added vignette
compound_symmetry_GxE_demoto demonstrate the simulation of genetic values using a compound symmetry GxE model.Added vignette
spatial_error_demoto demonstrate the simulation of plot errors and phenotypes for a multi-environment plant breeding trial.Added vignette
unstructured_GxE_demoto demonstrate the simulation of genetic values using an unstructured GxE model.Removed argument
envfrom functionplot_effects.Replaced package
fieldsfor graphics inplot_effectsbyggplot2.Set the
complexityargument offield_trial_errorby default to the maximum number of columns and rows in each environment.Updated Description in
DESCRIPTION.
FieldSimR 1.2.0
CRAN release: 2023-11-03
Argument
ext_ordreplaced argumentsext_col_corandext_row_corin functionfield_trial_error.Factorised argument
env,repandidin functionsfield_trial_error,make_phenotypes,unstr_asr_output,compsym_asr_output.Randomisation fixed in function
make_phenotypes.Changed default parameters for
col_corandrow_cor,prop_spatial, andcomplexityin functionfield_trial_error.Argument
plot_labelsadded to functionplot_effects.Added function
qq_plotto create quantile-quantile (Q-Q) plots.Added function
sample_variogramto create sample variograms.Added function
theoretical_variogramto create theoretical variograms.
FieldSimR 1.3.0
CRAN release: 2024-04-03
Replaced all instances of
_with.in function arguments, e.g.,pos.defreplacedpos_def.Replaced all instances of
n_withnin function arguments, e.g.,ntraitsreplacedn_traitsandnenvsreplacedn_envs.Added
multi_asr_inputandmulti_asr_outputwrapper functions for simulating genetic values based on a multiplicative model for GxE interaction.Added
small.positiveargument to functionrand_cor_mat, which is passed to thebendfunction.Updated data frames to reflect the data used in the manuscript
FieldSimR: An R package for simulating plot data in multi-environment field trials.Changed names of example data frames from
df_error_bivaranddf_gv_unstrtoerror_df_bivarandgv_df_unstr, respectively.Replaced
rel.main.eff.Awithprop.main,rel.main.eff.DDwithprop.mainD, andrel.main.eff.AAwithprop.mainAAin thecompsym_asr_inputfunction, since these arguments define the proportion of main effect variance, not the relative magnitude.prop.mainwas implemented instead ofprop.mainA, since this argument is aligned withvar, i.e., it represents the proportion of additive or total main effect variance depending on whetheruseVarA = TRUEorFALSEinAlphaSimR.Added
return.effectsargument to themake_phenotypesfunction for returning the plot errors and genetic values for each trait. The latter will be returned in randomised order whenrandomise = TRUE.Added functionality for
plot_effectsto display the factorblock, instead of a numeric column.Added
plot_matrixfunction for graphically displaying a symmetric matrix, e.g., correlation or covariance matrix, in a similar manner to theplot_effectsfunction. This function allows the matrix to be ordered based on a dendrogram, and split into user-defined groups.
FieldSimR 1.4.0
CRAN release: 2024-08-30
Added functionality to the
make_phenotypesfunction to handle incomplete experimental designs through the newdesign.dfargument, which accepts a data frame with individual x environment frequencies.Added new function
struc_cor_matfor simulating structured correlation matrices with reduced rank. This function also handles user-defined base functions.Added new functions
rand_diag_matandskew_diag_matfor simulating diagonal variance matrices, with diagonal elements simulated randomly or with a skewed (gamma or inverse gamma) distribution, respectively.Added new function
sample_metfor sampling environments from a larger population to mimic the sampling which occurs during multi-environment trialling.Swapped order of
repandidarguments incompsym_asr_outputandunstr_asr_outputfunctionsSwapped order of
repandidarguments ingv_df_unstrexample data frame.Updated colour scheme in
plot_matrix. Now prints a red-blue heatmap when a correlation matrix is supplied, or a light-dark blue heatmap when a covariance matrix is supplied.Updated
qq_plotandplot_histto handle a matrix as input through thedfargument (converts to a data frame internally).Added new function
group_cor_matfor simulating structured correlation matrices with multiple groups and reduced rank.