Skip to content

Commit 6c4adef

Browse files
committed
minor edits to chunk options and variable names
1 parent 299feb0 commit 6c4adef

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

traits/03-access-r-traits.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if(packageVersion("traits") == '0.2.0'){
2020

2121
Load other packages that we will need to get started.
2222

23-
```{r 00-setup, message = FALSE, echo = TRUE}
23+
```{r 00-setup, message = FALSE, echo = TRUE, warning = FALSE}
2424
library(traits)
2525
library(ggplot2)
2626
library(ggthemes)
@@ -83,14 +83,14 @@ sorghum_info <- betydb_query(table = 'species',
8383

8484
Now let's query some trait data.
8585
```{r canopy_height, echo = TRUE, message = FALSE}
86-
sorghum_height <- betydb_query(table = 'search',
86+
canopy_height <- betydb_query(table = 'search',
8787
trait = "canopy_height",
8888
sitename = "~Season 2",
8989
limit = 'none')
9090
```
9191

9292
```{r plot_height}
93-
ggplot(data = sorghum_height,
93+
ggplot(data = canopy_height,
9494
aes(x = lubridate::yday(lubridate::ymd_hms(raw_date)), y = mean)) +
9595
geom_point(size = 0.5, position = position_jitter(width = 0.1)) +
9696
# scale_x_datetime(date_breaks = '6 months') +

0 commit comments

Comments
 (0)