Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


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 Guidewe 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.

...

Div
stylebackground-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem;
# ======================================
# Basal Area data: 'basal_area' function
# ======================================
# The default arguments are: 'by.spp=FALSE' and 'by.hits=FALSE'

# Basal Area (m2/ha) per Plot (the default argument values)
# =========================================================
AP.data.BAperPlot = basal_area(AP.data$veg.basal)
class(AP.data.BAperPlot)

...

Div
stylebackground-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem;
# Basal Area (m2/ha)  per Individual Species
# ==========================================
AP.data.BAperSpp = basal_area(AP.data$veg.basal, by.spp=TRUE)
#class(AP.data.BAperSpp)
#dim(AP.data.BAperSpp)
head(AP.data.BAperSpp)


Div
stylebackground-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
stylebackground-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem;
# Mean Number of Basal Wedge Hits per Plot
# ========================================
AP.data.BWHperPlot = basal_area(AP.data$veg.basal, by.hits=TRUE)
#class(AP.data.BWHperPlot)
#dim(AP.data.BWHperPlot)
head(AP.data.BWHperPlot)


Div
stylebackground-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
stylebackground-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem;
# Mean Number of Basal Wedge Hits per Individual Species
# ======================================================
AP.data.BWHperSpp = basal_area(AP.data$veg.basal, by.spp=TRUE, by.hits=TRUE)
#class(AP.data.BWHperSpp)
#dim(AP.data.BWHperSpp)
head(AP.data.BWHperSpp)


Div
stylebackground-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

...