Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrerebeau committed Oct 23, 2024
1 parent a0584e3 commit 7d0e4e0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ groups(coda) <- bronze$dynasty
```

```{r barplot, fig.width=5, fig.height=7}
## Compositional barplots of major elements
barplot(coda, select = is_element_major(coda), order_rows = "Cu",
border = NA, space = 0)
## Select major elements
major <- coda[, is_element_major(coda)]
## Compositional barplot
barplot(major, order_rows = "Cu", border = NA, space = 0)
```

```{r lra, fig.width=7, fig.height=7, out.width='50%', fig.show='hold'}
Expand All @@ -114,7 +116,7 @@ lra <- pca(clr)
## Visualize results
viz_individuals(lra, color = c("#004488", "#DDAA33", "#BB5566"))
viz_hull(x = lra, border = c("#004488", "#DDAA33", "#BB5566"))
viz_hull(x = lra, color = c("#004488", "#DDAA33", "#BB5566"))
viz_variables(lra)
```
Expand Down
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ groups(coda) <- bronze$dynasty
```

``` r
## Compositional barplots of major elements
barplot(coda, select = is_element_major(coda), order_rows = "Cu",
border = NA, space = 0)
## Select major elements
major <- coda[, is_element_major(coda)]

## Compositional barplot
barplot(major, order_rows = "Cu", border = NA, space = 0)
```

![](man/figures/README-barplot-1.png)<!-- -->
Expand All @@ -138,7 +140,7 @@ lra <- pca(clr)

## Visualize results
viz_individuals(lra, color = c("#004488", "#DDAA33", "#BB5566"))
viz_hull(x = lra, border = c("#004488", "#DDAA33", "#BB5566"))
viz_hull(x = lra, color = c("#004488", "#DDAA33", "#BB5566"))

viz_variables(lra)
```
Expand Down
Binary file modified man/figures/README-barplot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-lra-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7d0e4e0

Please sign in to comment.