The 'basal_area' function in the 'ausplotsR' package calculates the Basal Area or Mean Number of Basal Wedge Hits of plots using the raw basal wedge data returned by the 'get_ausplots' function also in the 'ausplotsR' package.
...
Examples of the use of the 'basal_area' function to compute the Basal Area or Mean Number of Basal Wedge Hits of individual plots from raw basal wedge data (as returned by the 'get_ausplots' function) are presented below. Basal areas (or mean number of /wedge hits) are computed for the full set of basal wedge data currently available at AusPlots. The list of data frames containing information for all currently available AusPlots sites (i.e. the 'AP.data' list) was previously created using the 'get_ausplots' function (see the 'Obtaining AusPlots data: 'get_ausplots' function' Step-by-Step Guide; we use the list created in Example 4). The resulting Basal Areas or Mean Number of Wedge Hits data frames can be enriched with additional information as seen as seen in the 'Manipulating AusPlots data II: Merging data frames' Step-by-Step Guide. The examples below cover all possible combinations of argument values in the 'basal_area 'function.
Boxes with grey background contain code snippets, and boxes with white background containt code (text) outputs.
Example 1: Basal Area (m2/ha) per Plot (the default argument values)
...
Div |
---|
style | background-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
AP.data.BAperPlot = basal_area(AP.data$veg.basal)
class(AP.data.BAperPlot)
|
...
Div |
---|
style | background-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
AP.data.BAperSpp = basal_area(AP.data$veg.basal, by.spp=TRUE)
head(AP.data.BAperSpp)
|
Div |
---|
style | background-color: white; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
## site_unique herbarium_determination basal_area_m2_ha
## 1 WAAGES0003-58025 Acacia acuminata 0.350000
## 2 NSAMDD0027-57087 Acacia aneura 6.416667
## 3 NSAMUL0004-58560 Acacia aneura 5.843750
## 4 NTABRT0001-53616 Acacia aneura 0.800000
## 5 NTABRT0002-53617 Acacia aneura 0.612500
## 6 NTAFIN0004-58010 Acacia aneura 1.422222
|
...
Div |
---|
style | background-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
AP.data.BWHperPlot = basal_area(AP.data$veg.basal, by.hits=TRUE)
head(AP.data.BWHperPlot)
|
Div |
---|
style | background-color: white; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
## site_unique mean_hits
## 1 NSABBS0005-58582 24.77778
## 2 NSABBS0006-58557 25.11111
## 3 NSABHC0028-58027 20.44444
## 4 NSABHC0029-58028 16.88889
## 5 NSACHC0002-58558 10.11111
## 6 NSACHC0003-58575 8.87500
|
...
Div |
---|
style | background-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
AP.data.BWHperSpp = basal_area(AP.data$veg.basal, by.spp=TRUE, by.hits=TRUE)
head(AP.data.BWHperSpp)
|
Div |
---|
style | background-color: white; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
## site_unique herbarium_determination mean_hits
## 1 WAAGES0003-58025 Acacia acuminata 3.500000
## 2 NSAMDD0027-57087 Acacia aneura 9.888889
## 3 NSAMUL0004-58560 Acacia aneura 10.875000
## 4 NTABRT0001-53616 Acacia aneura 8.000000
## 5 NTABRT0002-53617 Acacia aneura 6.125000
## 6 NTAFIN0004-58010 Acacia aneura 14.222222
|
...