Skip to contents

staRsom 0.3.0

  • Prepared for CRAN.
  • No fixed seed in functions: seed = NULL is the default of eemsom(), eempf_som(), eemsom_regions(), eemsom_stability(), eemsom_cluster() and eemsom_kselect(). The random number stream of the session is used, so set.seed() before the call gives reproducible results. A number sets the seed for this calculation only, seed = 42 gives the results of earlier versions.
  • eemsom_stability() with cores = 1 keeps the random number stream of the session; before, the seed of its last map remained set.
  • No CITATION file: citation("staRsom") is generated from DESCRIPTION. For the package from CRAN, it contains the DOI of the package. The method paper of Ejarque-Gonzalez and Butturini (2014) is cited in DESCRIPTION, README, help pages and vignette.
  • DESCRIPTION links to the GitHub repository, the README shows the logo, the installation from GitHub and how the package was developed.
  • Shorter examples of eemsom_split() and eemsom_stability().
  • Website built with pkgdown: https://matthiaspucher.github.io/staRsom/.

staRsom 0.1.3

  • The vignette shows the staRsom logo, derived from the staRdom logo.

staRsom 0.1.2

  • eemsom_samples() and eemsom_predict() give the number of samples on the unit (hits) and its U-matrix value (umatrix) for each sample. Unusual samples often occupy a unit alone that is separated from its neighbours.
  • eemsom_stability() with type = "loo" returns the leave-one-out distance of each sample (element loo): the distance to its best matching unit on the maps calculated without it. High values indicate candidates for outliers in a subsequent PARAFAC analysis; print() shows the highest values.
  • All plots use viridis colour scales, also for discrete values: clusters and sample colours in eemsom_plot_map(), regions in ggeem(), silhouettes and the random map in eemsom_plot_stability(). Numeric sample colours in eemsom_plot_map(type = "samples") (e.g. leave-one-out distances) use the continuous viridis scale. Sample points omit the light yellow end of viridis to remain visible on the white background.
  • Automatic map size: rounding could lead to more units than samples (e.g. 18 units for 17 samples), as documented the number of units is now limited to the number of samples.
  • Vignette: new section on outliers. Outliers are usually kept in the map; its indicators are compared with the leverage of a PARAFAC model.
  • Vignette rewritten in the style of the staRdom vignettes: practical advice addressed to the reader, task-oriented sections, an explanation of self-organising maps for ecologists and biogeochemists, a diagram of the analysis steps and notes on parallel processing.

staRsom 0.1.1

  • eem2mat() always removes wavelength pairs that are missing in all samples, also with na = "keep". kohonen filled them with random values that were never trained, so prototype EEMs, component planes and regions were wrong there.
  • EEMs created by mat2eem() (e.g. by eemsom_codes()) carry the attributes of eemR and can be printed.
  • Distances of samples with missing values are scaled like in kohonen, so eemsom_samples(), eemsom_predict(), eemsom_quality() and eemsom_stability() agree. Distances are calculated by matrix products, which is much faster for large data sets.
  • eemsom_plot_map() gains unit_labels to show the numbers of the units.
  • eemsom_regions(): k can be a vector of candidates (default 2:9) or a single number.
  • eemsom_predict() maps new samples to maps of PARAFAC loadings (eempf_som()): their loadings are calculated with the fixed emission and excitation loadings of the model (A_missing() of staRdom). eempf_som objects store the PARAFAC model in the element pfmodel instead of components.
  • Automatic map size: extreme side ratios are replaced by 1 as in the SOM Toolbox.
  • Input checks: normalisation factors need to be positive, sample names need to be unique, abbreviations of na are accepted, keep.data is always TRUE.
  • eemsom_stability() shows the progress with verbose = TRUE. Its results differ slightly from version 0.1.0 because the seeds of the repetitions are drawn differently.
  • Documentation of run times and advice for larger data sets in eemsom(), eemsom_stability() and the vignette; cross-references between related functions; Language: en-GB.

staRsom 0.1.0

First release.

  • eem2mat() and mat2eem() convert eemlists to matrices and back, including normalisation and handling of missing values.
  • eemsom() calculates a self-organising map from EEM data; eemsom_samples(), eemsom_codes() and eemsom_quality() extract results.
  • ggeem() method for eemsom objects plots the prototype EEMs arranged like the map; eemsom_plot_map(), eemsom_plot_cplane() and eemsom_plot_training() show map properties, component planes and the training progress.
  • eemsom_cluster() and eemsom_kselect() group the units by hierarchical clustering or k-means; eemsom_plot_silhouette() shows silhouette widths.
  • eemsom_split() splits an eemlist into groups for separate PARAFAC models; eemsom_predict() maps new samples.
  • eemsom_regions() groups wavelength pairs with correlated component planes into fluorescence regions (Ejarque-Gonzalez and Butturini 2014), ggeem() plots them and eemsom_fri() calculates area-normalised regional volumes (Chen et al. 2003).
  • eemsom_stability() assesses the stability of quantisation and neighbourhood relations by bootstrap or leave-one-out (de Bodt et al. 2002), eemsom_plot_stability() compares it to a random map. eemsom() stores its settings for this purpose.
  • eempf_som() calculates a self-organising map from the Fmax loadings of a PARAFAC model (relative or absolute). Prototype EEMs are reconstructed from the PARAFAC components; eemsom_plot_cplane() shows component planes of PARAFAC components with the new argument comps.
  • The squared Euclidean distance is always used. kohonen otherwise switches to the Tanimoto distance for data in [0, 1] with row sums of 1.
  • Vignette “Self-organising maps of EEM data” with the complete workflow from staRdom data to the interpretation of the map.
  • eemsom_plot_cplane() gains scale = "each" to scale each component plane from 0 to 1.
  • citation("staRsom") gives the package and the method paper of Ejarque-Gonzalez and Butturini (2014).