Skip to content

Commit

Permalink
website article tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
david-barnett committed Sep 20, 2022
1 parent d6d72cb commit 719aa65
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions vignettes/web-only/ordination.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ ibd %>%
scale_colour_brewer(palette = "Dark2")
```

## Use ggside to add univariable distribution plots

## Univariable distribution side panels

As the ordination figures are (pretty much) just standard ggplot objects,
integration with other ggplot extensions like `ggside` is typically possible.
Expand Down Expand Up @@ -238,6 +239,7 @@ ibd %>%
ggside::geom_ysidedensity(aes(fill = ibd), alpha = 0.5, show.legend = FALSE) +
ggside::theme_ggside_void()
```

## RDA {#rda}

Redundancy analysis is a constrained ordination method. It displays the microbial variation that can also be explained by selected constraint variables.
Expand Down Expand Up @@ -267,7 +269,7 @@ ibd %>%
)
```

### Customising your ordination plot
## Customising your ordination plot

The plot above looks okay by default, but it is fairly easy to tweak ord_plot further to get the style just how you want it. The code below has comments to explain which part makes which changes to the plot.

Expand Down Expand Up @@ -318,7 +320,7 @@ ibd %>%
coord_fixed(ratio = 1, clip = "off")
```

#### Custom labels
### Custom labels

`tax_lab_style()` is a helper function that gives you some options for
customising the look of the taxa loading labels, including, in this example,
Expand Down Expand Up @@ -368,7 +370,7 @@ ibd %>%
```


### Partial ordinations
## Partial ordinations

Tutorial coming soon, for now see `ord_plot()` for examples.

Expand Down

0 comments on commit 719aa65

Please sign in to comment.