diff --git a/nexus/apple-touch-icon-120x120.png b/nexus/apple-touch-icon-120x120.png index fa1686576..6a9a50595 100644 Binary files a/nexus/apple-touch-icon-120x120.png and b/nexus/apple-touch-icon-120x120.png differ diff --git a/nexus/apple-touch-icon-152x152.png b/nexus/apple-touch-icon-152x152.png index ae32de691..0738cd90b 100644 Binary files a/nexus/apple-touch-icon-152x152.png and b/nexus/apple-touch-icon-152x152.png differ diff --git a/nexus/apple-touch-icon-180x180.png b/nexus/apple-touch-icon-180x180.png index 2c44765a8..c9e055bc4 100644 Binary files a/nexus/apple-touch-icon-180x180.png and b/nexus/apple-touch-icon-180x180.png differ diff --git a/nexus/apple-touch-icon-60x60.png b/nexus/apple-touch-icon-60x60.png index 99f2a28e8..21a25a16a 100644 Binary files a/nexus/apple-touch-icon-60x60.png and b/nexus/apple-touch-icon-60x60.png differ diff --git a/nexus/apple-touch-icon-76x76.png b/nexus/apple-touch-icon-76x76.png index 84ef01a13..a4a428621 100644 Binary files a/nexus/apple-touch-icon-76x76.png and b/nexus/apple-touch-icon-76x76.png differ diff --git a/nexus/apple-touch-icon.png b/nexus/apple-touch-icon.png index f14c12a9a..28105ec1b 100644 Binary files a/nexus/apple-touch-icon.png and b/nexus/apple-touch-icon.png differ diff --git a/nexus/articles/bibliography.html b/nexus/articles/bibliography.html index f91f08b9e..0553cd065 100644 --- a/nexus/articles/bibliography.html +++ b/nexus/articles/bibliography.html @@ -89,7 +89,7 @@

Comprehensive list of

N. Frerebeau

-

2023-09-04

+

2023-09-05

Source: vignettes/bibliography.Rmd
bibliography.Rmd
diff --git a/nexus/articles/nexus.html b/nexus/articles/nexus.html index de68eb35e..65bf078ae 100644 --- a/nexus/articles/nexus.html +++ b/nexus/articles/nexus.html @@ -87,7 +87,7 @@

N. Frerebeau

-

2023-09-04

+

2023-09-05

Source: vignettes/nexus.Rmd
nexus.Rmd
@@ -108,12 +108,7 @@

2023-09-04

Get started

-library(nexus)
-#> 
-#> Attaching package: 'nexus'
-#> The following objects are masked from 'package:stats':
-#> 
-#>     biplot, screeplot
+library(nexus)

nexus provides a set of S4 classes that represent different special types of matrix. The most basic class represents a compositional data matrix, i.e. quantitative (nonnegative) descriptions @@ -162,7 +157,7 @@

Get started
 ## Compositional bar plot
 plot(coda, order = "A")
-

+

Working with (reference) groups

@@ -252,29 +247,59 @@

Working with repeated measurementsNote that the presence of repeated measurements may affect some calculations (read the documentation carefully).

- -
-

Log-ratio transformations -

+
+

Log-ratio transformations +

The amount of every part is limited to the whole. The absolute amount of the whole is noninformative since it is typically due to artifacts on the measurement procedure. Thus only relative changes are relevant. If the relative amount of one part increases, the amounts of other parts must decrease, introducing spurious anticorrelation.

+

Use cases

-

Glass compositions +

Ceramic compositions

+
+## Data from Day et al. 2011
+data("kommos", package = "folio")
+
+## Remove rows with missing values
+kommos <- remove_NA(kommos, margin = 1)
+
+## Coerce to a compositional matrix
+coda <- as_composition(kommos)
+#> 2 qualitative variables were removed: type, date.
+
+## Set groups
+set_groups(coda) <- kommos$type
+
+## Compositional bar plot
+plot(coda, order = "Ca")
+

+
+## CLR
+clr <- transform_clr(coda)
+plot(clr, border = c("#EE7733", "#0077BB", "#33BBEE", "#EE3377"))
+

+
+## PCA
+clr_pca <- pca(clr, scale = FALSE)
+
+viz_individuals(clr_pca, highlight = get_groups(coda), pch = 16, 
+                col = c("#EE7733", "#0077BB", "#33BBEE", "#EE3377"))
+viz_variables(clr_pca)
+

Slag inclusions

-
+

References

diff --git a/nexus/articles/nexus_files/figure-html/unnamed-chunk-4-1.png b/nexus/articles/nexus_files/figure-html/barplot-1.png similarity index 100% rename from nexus/articles/nexus_files/figure-html/unnamed-chunk-4-1.png rename to nexus/articles/nexus_files/figure-html/barplot-1.png diff --git a/nexus/articles/nexus_files/figure-html/ceramics-barplot-1.png b/nexus/articles/nexus_files/figure-html/ceramics-barplot-1.png new file mode 100644 index 000000000..4a726ef13 Binary files /dev/null and b/nexus/articles/nexus_files/figure-html/ceramics-barplot-1.png differ diff --git a/nexus/articles/nexus_files/figure-html/ceramics-clr-1.png b/nexus/articles/nexus_files/figure-html/ceramics-clr-1.png new file mode 100644 index 000000000..63d722f0a Binary files /dev/null and b/nexus/articles/nexus_files/figure-html/ceramics-clr-1.png differ diff --git a/nexus/articles/nexus_files/figure-html/ceramics-pca-1.png b/nexus/articles/nexus_files/figure-html/ceramics-pca-1.png new file mode 100644 index 000000000..e2c7174da Binary files /dev/null and b/nexus/articles/nexus_files/figure-html/ceramics-pca-1.png differ diff --git a/nexus/articles/nexus_files/figure-html/ceramics-pca-2.png b/nexus/articles/nexus_files/figure-html/ceramics-pca-2.png new file mode 100644 index 000000000..fcbdef908 Binary files /dev/null and b/nexus/articles/nexus_files/figure-html/ceramics-pca-2.png differ diff --git a/nexus/favicon-16x16.png b/nexus/favicon-16x16.png index a05df08e7..2c11b0b9b 100644 Binary files a/nexus/favicon-16x16.png and b/nexus/favicon-16x16.png differ diff --git a/nexus/favicon-32x32.png b/nexus/favicon-32x32.png index 00e6a7661..86baedd04 100644 Binary files a/nexus/favicon-32x32.png and b/nexus/favicon-32x32.png differ diff --git a/nexus/pkgdown.yml b/nexus/pkgdown.yml index 840e83ddc..4f105c1d0 100644 --- a/nexus/pkgdown.yml +++ b/nexus/pkgdown.yml @@ -4,7 +4,7 @@ pkgdown_sha: ~ articles: bibliography: bibliography.html nexus: nexus.html -last_built: 2023-09-04T15:59Z +last_built: 2023-09-05T14:36Z urls: reference: https://packages.tesselle.org/nexus/reference article: https://packages.tesselle.org/nexus/articles diff --git a/nexus/reference/Rplot004.png b/nexus/reference/Rplot004.png index 3b4529386..3ee4bd1a5 100644 Binary files a/nexus/reference/Rplot004.png and b/nexus/reference/Rplot004.png differ diff --git a/nexus/reference/as_amounts.html b/nexus/reference/as_amounts.html index c674df65a..4fae5c830 100644 --- a/nexus/reference/as_amounts.html +++ b/nexus/reference/as_amounts.html @@ -108,13 +108,13 @@

Examples## Coerce to an S3 data.frame X <- data.frame(B) head(X) -#> col1 col2 col3 col4 col5 samples -#> row1 0.27444795 0.009463722 0.2618297 0.19558360 0.25867508 row1 -#> row2 0.03629032 0.233870968 0.1814516 0.21370968 0.33467742 row2 -#> row3 0.22589532 0.195592287 0.1928375 0.16528926 0.22038567 row3 -#> row4 0.29431438 0.030100334 0.3344482 0.30769231 0.03344482 row4 -#> row5 0.03004292 0.343347639 0.2961373 0.19313305 0.13733906 row5 -#> row6 0.32314410 0.087336245 0.4192140 0.07860262 0.09170306 row6 +#> V1 V2 V3 V4 V5 samples +#> 1 0.23776224 0.255244755 0.33916084 0.02797203 0.1398601 1 +#> 2 0.26234568 0.262345679 0.12345679 0.17592593 0.1759259 2 +#> 3 0.15163934 0.008196721 0.35655738 0.19672131 0.2868852 3 +#> 4 0.31250000 0.319078947 0.07236842 0.08552632 0.2105263 4 +#> 5 0.55000000 0.225000000 0.05625000 0.15625000 0.0125000 5 +#> 6 0.05797101 0.342995169 0.01449275 0.18840580 0.3961353 6