staRsom 0.3.0
- Prepared for CRAN.
- No fixed seed in functions:
seed = NULLis the default ofeemsom(),eempf_som(),eemsom_regions(),eemsom_stability(),eemsom_cluster()andeemsom_kselect(). The random number stream of the session is used, soset.seed()before the call gives reproducible results. A number sets the seed for this calculation only,seed = 42gives the results of earlier versions. -
eemsom_stability()withcores = 1keeps 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()andeemsom_stability(). - Website built with pkgdown: https://matthiaspucher.github.io/staRsom/.
staRsom 0.1.2
-
eemsom_samples()andeemsom_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()withtype = "loo"returns the leave-one-out distance of each sample (elementloo): 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 inggeem(), silhouettes and the random map ineemsom_plot_stability(). Numeric sample colours ineemsom_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 withna = "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. byeemsom_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()andeemsom_stability()agree. Distances are calculated by matrix products, which is much faster for large data sets. -
eemsom_plot_map()gainsunit_labelsto show the numbers of the units. -
eemsom_regions():kcan be a vector of candidates (default2: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_somobjects store the PARAFAC model in the elementpfmodelinstead ofcomponents. - 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
naare accepted,keep.datais always TRUE. -
eemsom_stability()shows the progress withverbose = 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()andmat2eem()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()andeemsom_quality()extract results. -
ggeem()method foreemsomobjects plots the prototype EEMs arranged like the map;eemsom_plot_map(),eemsom_plot_cplane()andeemsom_plot_training()show map properties, component planes and the training progress. -
eemsom_cluster()andeemsom_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 andeemsom_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 argumentcomps. - 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()gainsscale = "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).
