Description Usage Arguments Value Examples
View source: R/apa_border_tree.R
Border trees are trees whose APA-patches touch the plot-border.
1 |
apa_list |
A |
An apa_list
where apa_list$tree_dat
will have an
additional column that specifies which trees are border trees.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | library(APAtree)
data(tree_enrico, package = "APAtree")
data(plot_enrico, package = "APAtree")
# only calculate an apa_list for two plots and with a coarse resolution of 1 m
# to save time.
apa_list_enrico <-
apa_list(plot_dat = subset(plot_enrico, id_plot %in% c("5.2", "8.2")),
tree_dat = tree_enrico,
plot_id_column = "id_plot",
tree_id_column = "id_tree",
weight_column = "crown_radius_95",
res = 1,
apa_polygon = TRUE)
apa_list_enrico <- apa_border_tree(apa_list_enrico)
# Information about which tree is a border tree is stored in the border_tree
# column
table(apa_list_enrico$tree_dat$border_tree)
# Plot border trees
plot(apa_list_enrico,
color_map = data.frame(border_tree = c(TRUE, FALSE),
color = c("red", gray(.9))),
critical = NA)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.