Skip to content

Commit

Permalink
Update AusTraits_tutorial.qmd
Browse files Browse the repository at this point in the history
use austraits::plot_trait_distribution_beeswarm not traits.build::plot_trait_distribution_beeswarm
  • Loading branch information
ehwenk authored Dec 14, 2023
1 parent 6ba0352 commit e4a46ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AusTraits_tutorial.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ austraits$traits %>%
*How are these data distributed across datasets?*

```{r, eval = TRUE}
traits.build::plot_trait_distribution_beeswarm(austraits, "leaf_N_per_dry_mass", y_axis_category = "dataset_id")
austraits::plot_trait_distribution_beeswarm(austraits, "leaf_N_per_dry_mass", y_axis_category = "dataset_id")
```

*How much data exist for other nitrogen traits?*
Expand Down Expand Up @@ -559,14 +559,14 @@ This function first groups values at the site level, then at the taxon level. Fo

Another way to summarise AusTraits data by trait, and determine whether AusTraits offers sufficient data coverage for a trait of choice, is to plot the distribution of trait values in AusTraits.

As seen in [`A first look at data`](#exploring), the function `traits.build::plot_trait_distribution_beeswarm()` plots trait data by dataset_id:
As seen in [`A first look at data`](#exploring), the function `austraits::plot_trait_distribution_beeswarm()` plots trait data by dataset_id:

```{r, eval = TRUE}
austraits$traits %>%
dplyr::filter(trait_name == "leaf_N_per_dry_mass") %>%
dplyr::distinct(taxon_name) %>% nrow()
traits.build::plot_trait_distribution_beeswarm(austraits, "leaf_N_per_dry_mass",
austraits::plot_trait_distribution_beeswarm(austraits, "leaf_N_per_dry_mass",
y_axis_category = "dataset_id")
```

Expand Down

0 comments on commit e4a46ef

Please sign in to comment.