Skip to content

Commit 7d474c5

Browse files
committed
Update install instructions for pub quality figs
1 parent 052ed23 commit 7d474c5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

materials/publication-figures-R.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ language: R
66
---
77

88
> * Have students install `ggplot2`, `readr`, `patchwork`
9+
> * Download the data file from https://ndownloader.figshare.com/files/5629536 and save it as `TREE_SURVEYS.txt`
10+
> * `download.file("https://ndownloader.figshare.com/files/5629536", "TREE_SURVEYS.txt")`
911
> * Open https://ggplot2.tidyverse.org/reference/ggtheme.html in browser
1012
1113
### File formats
@@ -28,7 +30,9 @@ language: R
2830
library(ggplot2)
2931
library(readr)
3032

31-
trees <- read_tsv("https://ndownloader.figshare.com/files/5629536", na = c("", "NA", "missing", "MISSING", "?", "3.3."))
33+
trees <- trees <- read_tsv("TREE_SURVEYS.txt",
34+
col_types = list(HEIGHT = col_double(),
35+
AXIS_2 = col_double()))
3236

3337
ggplot(trees, aes(x = HEIGHT, y = CIRC)) +
3438
geom_point()

0 commit comments

Comments
 (0)