Skip to content

Commit

Permalink
Change exotic plant to exotic weed in figures
Browse files Browse the repository at this point in the history
  • Loading branch information
lossanna committed Jul 5, 2022
1 parent b849253 commit 5e408e5
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 27 deletions.
14 changes: 7 additions & 7 deletions RMarkdown/pub_main-figs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ f1.df <- data.frame(model = c("Exotic", "Native"),
```{r, fig.height=7, fig.width=6}
# Orchard plots
f1.orc.ex <- orchard_plot(ex.mv.o, mod = "Int", xlab = "Effect size (Hedges' g)", transfm = "none") +
ggtitle("Exotic plant summary response") +
ggtitle("Exotic weed summary response") +
annotate(geom = "text", x = -10, y = 1.4,
label = paste0("Confidence interval: ", round(f1.df[1, 2], 3), ", ", round(f1.df[1, 3], 3), "***", "\n",
"Prediction interval: ", round(f1.df[1, 4], 3), ", ", round(f1.df[1, 5], 3)),
Expand All @@ -101,7 +101,7 @@ ggarrange(f1.orc.ex, f1.orc.nt,
```

# Figure 2
Figure 2 is a forest plot of exotic plant response by plant lifeform (annual/perennial and grass/forb/shrub).
Figure 2 is a forest plot of exotic weed response by plant lifeform (annual/perennial and grass/forb/shrub).
```{r, eval=FALSE}
# Exotic anpergfs model
ex.mv.papgfs <- rma.mv(yi = yi,
Expand Down Expand Up @@ -136,11 +136,11 @@ forest(x = n.forest.ex.papgfs$x,
par(cex = 0.75, font = 4)
text(x = -1.3, y = 6, labels = "k")
par(cex = 0.75, font = 2)
text(x = 0, y = 6, labels = "Exotic plant response")
text(x = 0, y = 6, labels = "Exotic weed response")
```

# Figure 3
Figure 3 is a forest plot of exotic plant response by study duration (months from first C app to harvest).
Figure 3 is a forest plot of exotic weed response by study duration (months from first C app to harvest).
```{r, eval=FALSE}
# Exotic dlc model
ex.mv.dlc <- rma.mv(yi = yi,
Expand Down Expand Up @@ -171,11 +171,11 @@ forest(x = n.forest.ex.dlc$x,
par(cex = 0.75, font = 4)
text(x = -2.4, y = 11, labels = "k")
par(cex = 0.75, font = 2)
text(x = 0, y = 11, labels = "Exotic plant response")
text(x = 0, y = 11, labels = "Exotic weed response")
```

# Figure 4
Figure 4 is a forest plot of exotic plant response by C application rate.
Figure 4 is a forest plot of exotic weed response by C application rate.
```{r, eval=FALSE}
# Exotic C rate models
ex.cratc.na <- ex %>%
Expand Down Expand Up @@ -217,7 +217,7 @@ text(x = -6.35, y = 16.1, labels = bquote(paste("(g C ", m^-2, " ", y^-1, ")")),
par(cex = 0.75, font = 4)
text(x = -4.7, y = 16.1, labels = "k")
par(cex = 0.75, font = 2)
text(x = 0, y = 16.1, labels = "Exotic plant response")
text(x = 0, y = 16.1, labels = "Exotic weed response")
```

# Figure 5
Expand Down
26 changes: 13 additions & 13 deletions RMarkdown/pub_main-figs.html

Large diffs are not rendered by default.

Binary file modified output_figs/Figure_1.pdf
Binary file not shown.
Binary file modified output_figs/Figure_1.tiff
Binary file not shown.
Binary file modified output_figs/Figure_2.pdf
Binary file not shown.
Binary file modified output_figs/Figure_2.tiff
Binary file not shown.
Binary file modified output_figs/Figure_3.pdf
Binary file not shown.
Binary file modified output_figs/Figure_3.tiff
Binary file not shown.
Binary file modified output_figs/Figure_4.pdf
Binary file not shown.
Binary file modified output_figs/Figure_4.tiff
Binary file not shown.
Binary file modified output_figs/Orchard_ex.tiff
Binary file not shown.
14 changes: 7 additions & 7 deletions scripts/Main-figures.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ f1.df <- data.frame(model = c("Exotic", "Native"),

# Orchard plots
f1.orc.ex <- orchard_plot(ex.mv.o, mod = "Int", xlab = "Effect size (Hedges' g)", transfm = "none") +
ggtitle("Exotic plant summary response") +
ggtitle("Exotic weed summary response") +
annotate(geom = "text", x = -10, y = 1.4,
label = paste0("Confidence interval: ", round(f1.df[1, 2], 3), ", ", round(f1.df[1, 3], 3), "***", "\n",
"Prediction interval: ", round(f1.df[1, 4], 3), ", ", round(f1.df[1, 5], 3)),
Expand Down Expand Up @@ -85,7 +85,7 @@ forest(x = n.forest.ex.papgfs$x,
par(cex = 0.75, font = 4)
text(x = -1.3, y = 6, labels = "k")
par(cex = 0.75, font = 2)
text(x = 0, y = 6, labels = "Exotic plant response")
text(x = 0, y = 6, labels = "Exotic weed response")
dev.off()

tiff("output_figs/Figure_2.tiff", width = 6, height = 4, units = "in", res = 300)
Expand All @@ -104,7 +104,7 @@ forest(x = n.forest.ex.papgfs$x,
par(cex = 0.75, font = 4)
text(x = -1.3, y = 6, labels = "k")
par(cex = 0.75, font = 2)
text(x = 0, y = 6, labels = "Exotic plant response")
text(x = 0, y = 6, labels = "Exotic weed response")
dev.off()


Expand All @@ -131,7 +131,7 @@ forest(x = n.forest.ex.dlc$x,
par(cex = 0.75, font = 4)
text(x = -2.4, y = 11, labels = "k")
par(cex = 0.75, font = 2)
text(x = 0, y = 11, labels = "Exotic plant response")
text(x = 0, y = 11, labels = "Exotic weed response")
dev.off()

tiff("output_figs/Figure_3.tiff", width = 6, height = 4, units = "in", res = 300)
Expand All @@ -150,7 +150,7 @@ forest(x = n.forest.ex.dlc$x,
par(cex = 0.75, font = 4)
text(x = -2.4, y = 11, labels = "k")
par(cex = 0.75, font = 2)
text(x = 0, y = 11, labels = "Exotic plant response")
text(x = 0, y = 11, labels = "Exotic weed response")
dev.off()


Expand Down Expand Up @@ -179,7 +179,7 @@ text(x = -6.55, y = 16.1, labels = bquote(paste("(g C ", m^-2, " ", y^-1, ")")),
par(cex = 0.75, font = 4)
text(x = -5, y = 16.1, labels = "k")
par(cex = 0.75, font = 2)
text(x = 0, y = 16.1, labels = "Exotic plant response")
text(x = 0, y = 16.1, labels = "Exotic weed response")
dev.off()

tiff("output_figs/Figure_4.tiff", width = 6, height = 4, units = "in", res = 300)
Expand All @@ -201,7 +201,7 @@ text(x = -6.35, y = 16.1, labels = bquote(paste("(g C ", m^-2, " ", y^-1, ")")),
par(cex = 0.75, font = 4)
text(x = -4.7, y = 16.1, labels = "k")
par(cex = 0.75, font = 2)
text(x = 0, y = 16.1, labels = "Exotic plant response")
text(x = 0, y = 16.1, labels = "Exotic weed response")
dev.off()


Expand Down

0 comments on commit 5e408e5

Please sign in to comment.