The 'species'_table function in the 'ausplotsR' is used to generate a species occurrence matrix from AusPlots raw data. The species occurence matrix can be then used in multiple applications that require species-level data. For example, it can be used to investigate patterns of presence/absence and/or abundance (note that vegetation 'cover' is used as a surrogate for vegetation 'abundace'), compute indices of species diversity, or elaborate rank-abundance plots.
...
Examples of the different arguments combinations in the 'species_table' function are presented below. Species occurrence matrices are computed for the full set of vegetation point intersect 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 class and dimensions of the returned data frame are the same in all examples, so they are only displayed for the first example (the corresponding code is commented out in the other examples). The resulting species occurrence data frames can be enriched with additional information (see the 'Manipulating AusPlots data II: Merging data frames' Step-by-Step Guide).
Boxes with grey background contain code snippets, and boxes with white background containt code (text) outputs.
...
Div |
---|
style | background-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
AP.data.SppbySites.PA = species_table(AP.data$veg.PI, m_kind="PA")
class(AP.data.SppbySites.PA)
|
...
Div |
---|
style | background-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
dim(AP.data.SppbySites.PA)
|
Div |
---|
style | background-color: white; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
## [1] 653 3665
|
...
Div |
---|
style | background-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
AP.data.SppbySites.PA[1:5, 1:5]
|
Div |
---|
style | background-color: white; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
## Abutilon.fraseri Abutilon.halophilum Abutilon.hannii
## NSABBS0005-58582 0 0 0
## NSABBS0006-58557 0 0 0
## NSABHC0001-53596 0 0 0
## NSABHC0002-53597 0 0 0
## NSABHC0003-53598 0 0 0
## Abutilon.hannii.subsp..prostrate..p.k.latz.427.
## NSABBS0005-58582 0
## NSABBS0006-58557 0
## NSABHC0001-53596 0
## NSABHC0002-53597 0
## NSABHC0003-53598 0
## Abutilon.leucopetalum
## NSABBS0005-58582 0
## NSABBS0006-58557 0
## NSABHC0001-53596 0
## NSABHC0002-53597 0
## NSABHC0003-53598 0
|
...
Div |
---|
style | background-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
summary(AP.data.SppbySites.PA[,1:3])
|
Div |
---|
style | background-color: white; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
## Abutilon.fraseri Abutilon.halophilum Abutilon.hannii
## Min. :0.00000 Min. :0.000000 Min. :0.000000
## 1st Qu.:0.00000 1st Qu.:0.000000 1st Qu.:0.000000
## Median :0.00000 Median :0.000000 Median :0.000000
## Mean :0.01072 Mean :0.007657 Mean :0.001531
## 3rd Qu.:0.00000 3rd Qu.:0.000000 3rd Qu.:0.000000
## Max. :1.00000 Max. :1.000000 Max. :1.000000
|
...
Div |
---|
style | background-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
AP.data.SppbySites.PcC.PFC = species_table(AP.data$veg.PI, m_kind="percent_cover", cover_type="PFC")
summary(AP.data.SppbySites.PcC.PFC[,1:3])
|
Div |
---|
style | background-color: white; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
## Abutilon.fraseri Abutilon.halophilum Abutilon.hannii
## Min. :0.000000 Min. :0.000000 Min. :0.0000000
## 1st Qu.:0.000000 1st Qu.:0.000000 1st Qu.:0.0000000
## Median :0.000000 Median :0.000000 Median :0.0000000
## Mean :0.001516 Mean :0.005307 Mean :0.0003033
## 3rd Qu.:0.000000 3rd Qu.:0.000000 3rd Qu.:0.0000000
## Max. :0.297030 Max. :1.980198 Max. :0.1980198
|
...
Div |
---|
style | background-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
AP.data.SppbySites.PcC.OCC = species_table(AP.data$veg.PI, m_kind="percent_cover", cover_type="OCC")
summary(AP.data.SppbySites.PcC.OCC[,1:3])
|
Div |
---|
style | background-color: white; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
## Abutilon.fraseri Abutilon.halophilum Abutilon.hannii
## Min. :0.000000 Min. :0.000000 Min. :0.0000000
## 1st Qu.:0.000000 1st Qu.:0.000000 1st Qu.:0.0000000
## Median :0.000000 Median :0.000000 Median :0.0000000
## Mean :0.001516 Mean :0.005307 Mean :0.0003033
## 3rd Qu.:0.000000 3rd Qu.:0.000000 3rd Qu.:0.0000000
## Max. :0.297030 Max. :1.980198 Max. :0.1980198
|
...
Div |
---|
style | background-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
AP.data.SppbySites.Freq = species_table(AP.data$veg.PI, m_kind="freq")
summary(AP.data.SppbySites.Freq[,1:3])
|
Div |
---|
style | background-color: white; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
## Abutilon.fraseri Abutilon.halophilum Abutilon.hannii
## Min. :0.000000 Min. :0.00000 Min. :0.0000000
## 1st Qu.:0.000000 1st Qu.:0.00000 1st Qu.:0.0000000
## Median :0.000000 Median :0.00000 Median :0.0000000
## Mean :0.001378 Mean :0.00245 Mean :0.0003063
## 3rd Qu.:0.000000 3rd Qu.:0.00000 3rd Qu.:0.0000000
## Max. :0.200000 Max. :0.80000 Max. :0.2000000
|
...
Div |
---|
style | background-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
AP.data.SppbySites.IVI.PFC = species_table(AP.data$veg.PI, m_kind="IVI", cover_type="PFC")
summary(AP.data.SppbySites.IVI.PFC[,1:3])
|
Div |
---|
style | background-color: white; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
## Abutilon.fraseri Abutilon.halophilum Abutilon.hannii
## Min. :0.000000 Min. :0.00000 Min. :0.0000000
## 1st Qu.:0.000000 1st Qu.:0.00000 1st Qu.:0.0000000
## Median :0.000000 Median :0.00000 Median :0.0000000
## Mean :0.001378 Mean :0.00245 Mean :0.0003063
## 3rd Qu.:0.000000 3rd Qu.:0.00000 3rd Qu.:0.0000000
## Max. :0.200000 Max. :0.80000 Max. :0.2000000
|
...
Div |
---|
style | background-color: #F8F9F9; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
AP.data.SppbySites.IVI.OCC = species_table(AP.data$veg.PI, m_kind="IVI", cover_type="OCC")
summary(AP.data.SppbySites.IVI.OCC[,1:3])
|
Div |
---|
style | background-color: white; border: 1px solid #666; font-size: 12px; padding: 0.5rem 0.5rem; |
---|
|
## Abutilon.fraseri Abutilon.halophilum Abutilon.hannii
## Min. :0.000000 Min. :0.00000 Min. :0.0000000
## 1st Qu.:0.000000 1st Qu.:0.00000 1st Qu.:0.0000000
## Median :0.000000 Median :0.00000 Median :0.0000000
## Mean :0.001378 Mean :0.00245 Mean :0.0003063
## 3rd Qu.:0.000000 3rd Qu.:0.00000 3rd Qu.:0.0000000
## Max. :0.200000 Max. :0.80000 Max. :0.2000000
|
...