Description Usage Arguments Value Examples
This function tabulates data from the @commdf@counts
slot
in EPDr objects (epd.entity.df-class
or calculated
them from a epd.entity-class
) to summarize information
for particular taxa at particular age or time intervals (samples).
This function is useful to reshape the data to be plotted and mapped
by link[ggplot2]{ggplot}
. It was written to be used by
map_taxa_age
function.
1 2 3 4 5 6 7 8 9 | table_by_taxa_age(x, taxa, sample_label)
## S4 method for signature 'epd.entity.df,character,character'
table_by_taxa_age(x, taxa,
sample_label)
## S4 method for signature 'epd.entity,character,character'
table_by_taxa_age(x, taxa,
sample_label)
|
x |
epd.entity.df |
taxa |
character Character vector indicating the taxa to be included
in the table. Several taxa can be specified but the function returns data
for only one taxa by summing all counts, and the taxa name specified
in the output is the first one in |
sample_label |
character Character vector indicating the ages or time intervals to be included in the table. |
Data frame with six columns: e_
, londd
, latdd
,
count
, sample_label
, and taxa_label
.
"e_"Entity identification number.
"londd"Longitude of the site in decimal degrees.
"latdd"Latitude of the site in decimal degrees.
"count"The count of that taxon in that particular sample (age or time interval).
"sample_label"The sample (age or time interval) at which the particulates were counted.
"taxa_label"The taxa that has been counted.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
epd.connection <- connect_to_epd(host = "localhost", database = "epd",
user = "epdr", password = "epdrpw")
epd.1 <- get_entity(1, epd.connection)
epd.1 <- filter_taxagroups(epd.1, c("HERB", "TRSH", "DWAR",
"LIAN", "HEMI", "UPHE"))
epd.1 <- giesecke_default_chron(epd.1)
epd.1 <- interpolate_counts(epd.1, seq(0, 22000, by = 1000))
epd.taxonomy <- getTaxonomyEPD(epd.connection)
epd.1 <- taxa_to_acceptedtaxa(epd.1, epd.taxonomy)
table_by_taxa_age(epd.1, "Cedrus",
as.character(seq(0, 21000, by=1000)))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.