Changelog
Source:NEWS.md
FieldSimR 1.1.0
CRAN release: 2023-04-12
Added a
NEWS.md
file to track changes to the package.Added argument
pos_def
to functionrand_cor_mat
to make bending of a non-positive-definite correlation matrix to a positive-definite matrix optional.Added example data frame
df_error_bivar
with plot errors for two traits across three locations generated usingfield_trial_error
.Added example data frame
df_gv_unstr
with simulated genetic values for two traits across three environments generated usingunstr_asr_input
andunstr_asr_output
.Added functionality to simulate extraneous variation to
field_trial_error
.Added internal functions
spline_interp
andfill_matrix
to interpolate and extrapolate missing values if some NAs remain after bivariate interpolation.Added
make_phenotypes
to create phenotypes through combination of genetic values and plot errors.Added
qq_plot
to compare the theoretical quantiles of a normal distribution with the sample quantiles of the distribution of a user-defined effect.Added
sample_variogram
to create a variogram of a user-defined effect.Added
theoretical_variogram
to create a theoretical variogram.Added vignette
compound_symmetry_GxE_demo
to demonstrate the simulation of genetic values using a compound symmetry GxE model.Added vignette
spatial_error_demo
to demonstrate the simulation of plot errors and phenotypes for a multi-environment plant breeding trial.Added vignette
unstructured_GxE_demo
to demonstrate the simulation of genetic values using an unstructured GxE model.Removed argument
env
from functionplot_effects
.Replaced package
fields
for graphics inplot_effects
byggplot2
.Set the
complexity
argument offield_trial_error
by 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_ord
replaced argumentsext_col_cor
andext_row_cor
in functionfield_trial_error
.Factorised argument
env
,rep
andid
in functionsfield_trial_error
,make_phenotypes
,unstr_asr_output
,compsym_asr_output
.Randomisation fixed in function
make_phenotypes
.Changed default parameters for
col_cor
androw_cor
,prop_spatial
, andcomplexity
in functionfield_trial_error
.Argument
plot_labels
added to functionplot_effects
.Added function
qq_plot
to create quantile-quantile (Q-Q) plots.Added function
sample_variogram
to create sample variograms.Added function
theoretical_variogram
to create theoretical variograms.
FieldSimR 1.3.0
CRAN release: 2024-04-03
Replaced all instances of
_
with.
in function arguments, e.g.,pos.def
replacedpos_def
.Replaced all instances of
n_
withn
in function arguments, e.g.,ntraits
replacedn_traits
andnenvs
replacedn_envs
.Added
multi_asr_input
andmulti_asr_output
wrapper functions for simulating genetic values based on a multiplicative model for GxE interaction.Added
small.positive
argument to functionrand_cor_mat
, which is passed to thebend
function.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_bivar
anddf_gv_unstr
toerror_df_bivar
andgv_df_unstr
, respectively.Replaced
rel.main.eff.A
withprop.main
,rel.main.eff.DD
withprop.mainD
, andrel.main.eff.AA
withprop.mainAA
in thecompsym_asr_input
function, since these arguments define the proportion of main effect variance, not the relative magnitude.prop.main
was 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 = TRUE
orFALSE
inAlphaSimR
.Added
return.effects
argument to themake_phenotypes
function 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_effects
to display the factorblock
, instead of a numeric column.Added
plot_matrix
function for graphically displaying a symmetric matrix, e.g., correlation or covariance matrix, in a similar manner to theplot_effects
function. 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_phenotypes
function to handle incomplete experimental designs through the newdesign.df
argument, which accepts a data frame with individual x environment frequencies.Added new function
struc_cor_mat
for simulating structured correlation matrices with reduced rank. This function also handles user-defined base functions.Added new functions
rand_diag_mat
andskew_diag_mat
for simulating diagonal variance matrices, with diagonal elements simulated randomly or with a skewed (gamma or inverse gamma) distribution, respectively.Added new function
sample_met
for sampling environments from a larger population to mimic the sampling which occurs during multi-environment trialling.Swapped order of
rep
andid
arguments incompsym_asr_output
andunstr_asr_output
functionsSwapped order of
rep
andid
arguments ingv_df_unstr
example 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_plot
andplot_hist
to handle a matrix as input through thedf
argument (converts to a data frame internally).Added new function
group_cor_mat
for simulating structured correlation matrices with multiple groups and reduced rank.