get_annotation | R Documentation |
get_annotation
gets row annotations.
get_annotation(population, annotation_prefix = "Metadata_")
population |
data.frame with annotations (a.k.a. metadata) and observation variables. |
annotation_prefix |
optional character string specifying prefix for
annotation columns (e.g. |
data.frame with row annotations of the same class as
population
.
suppressMessages(suppressWarnings(library(magrittr)))
population <- tibble::tibble(
Metadata_group = c(
"control", "control", "control", "control",
"experiment", "experiment", "experiment", "experiment"
),
Metadata_batch = c("a", "a", "b", "b", "a", "a", "b", "b"),
AreaShape_Area = c(10, 12, 15, 16, 8, 8, 7, 7)
)
matric::get_annotation(population, annotation_prefix = "Metadata_")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.