Code
<- c("Barbastella barbastellus" = "#1f78b4",
bat_colours_sci "Myotis alcathoe" = "#a52a2a",
"Myotis bechsteinii" = "#7fff00",
"Myotis brandtii" = "#b2df8a",
"Myotis mystacinus" = "#6a3d9a",
"Myotis nattereri" = "#ff7f00",
"Myotis daubentonii" = "#a6cee3",
"Myotis spp." = "#bcee68",
"Plecotus auritus" = "#8b0000",
"Plecotus spp." = "#8b0000",
"Plecotus austriacus" = "#000000",
"Pipistrellus pipistrellus" = "#ffff99",
"Pipistrellus nathusii" = "#8a2be2",
"Pipistrellus pygmaeus" = "#b15928",
"Pipistrellus spp." = "#fdbf6f",
"Rhinolophus ferrumequinum" = "#e31a1c",
"Rhinolophus hipposideros" = "#33a02c",
"Nyctalus noctula" = "#cab2d6",
"Nyctalus leisleri" = "#fb9a99",
"Nyctalus spp." = "#eee8cd",
"Eptesicus serotinus" = "#008b8b")
<- tibble(names(bat_colours_sci), unname(bat_colours_sci))
bat_colour_table
colnames(bat_colour_table) <- c("Scientific Name", "Colour (Hex)")
%>%
bat_colour_table # Table made with library(flextable)
flextable(col_keys = colnames(.)) %>%
bold(part = "header") %>%
autofit() %>%
#autofit(add_w = 0.1, add_h = 0.1) %>%
#bg(bg = "black", part = "header") %>%
bg(j = 2, i = 1, bg = bat_colour_table$`Colour (Hex)`[1], part = "body") %>%
bg(j = 2, i = 2, bg = bat_colour_table$`Colour (Hex)`[2], part = "body") %>%
bg(j = 2, i = 3, bg = bat_colour_table$`Colour (Hex)`[3], part = "body") %>%
bg(j = 2, i = 4, bg = bat_colour_table$`Colour (Hex)`[4], part = "body") %>%
bg(j = 2, i = 5, bg = bat_colour_table$`Colour (Hex)`[5], part = "body") %>%
bg(j = 2, i = 6, bg = bat_colour_table$`Colour (Hex)`[6], part = "body") %>%
bg(j = 2, i = 7, bg = bat_colour_table$`Colour (Hex)`[7], part = "body") %>%
bg(j = 2, i = 8, bg = bat_colour_table$`Colour (Hex)`[8], part = "body") %>%
bg(j = 2, i = 9, bg = bat_colour_table$`Colour (Hex)`[9], part = "body") %>%
bg(j = 2, i = 10, bg = bat_colour_table$`Colour (Hex)`[10], part = "body") %>%
bg(j = 2, i = 11, bg = bat_colour_table$`Colour (Hex)`[11], part = "body") %>%
color(j = 2, i = 11, color = "white", part = "body") %>%
bg(j = 2, i = 12, bg = bat_colour_table$`Colour (Hex)`[12], part = "body") %>%
bg(j = 2, i = 13, bg = bat_colour_table$`Colour (Hex)`[13], part = "body") %>%
bg(j = 2, i = 14, bg = bat_colour_table$`Colour (Hex)`[14], part = "body") %>%
bg(j = 2, i = 15, bg = bat_colour_table$`Colour (Hex)`[15], part = "body") %>%
bg(j = 2, i = 16, bg = bat_colour_table$`Colour (Hex)`[16], part = "body") %>%
bg(j = 2, i = 17, bg = bat_colour_table$`Colour (Hex)`[17], part = "body") %>%
bg(j = 2, i = 18, bg = bat_colour_table$`Colour (Hex)`[18], part = "body") %>%
bg(j = 2, i = 19, bg = bat_colour_table$`Colour (Hex)`[19], part = "body") %>%
bg(j = 2, i = 20, bg = bat_colour_table$`Colour (Hex)`[20], part = "body") %>%
bg(j = 2, i = 21, bg = bat_colour_table$`Colour (Hex)`[21], part = "body") %>%
# color(color = "white", part = "header") %>%
align(align = "center", part = "header" ) %>%
align(j = 2, align = "right", part = "body") %>%
italic(j = 1, italic = TRUE, part = "body")
Scientific Name | Colour (Hex) |
---|---|
Barbastella barbastellus | #1f78b4 |
Myotis alcathoe | #a52a2a |
Myotis bechsteinii | #7fff00 |
Myotis brandtii | #b2df8a |
Myotis mystacinus | #6a3d9a |
Myotis nattereri | #ff7f00 |
Myotis daubentonii | #a6cee3 |
Myotis spp. | #bcee68 |
Plecotus auritus | #8b0000 |
Plecotus spp. | #8b0000 |
Plecotus austriacus | #000000 |
Pipistrellus pipistrellus | #ffff99 |
Pipistrellus nathusii | #8a2be2 |
Pipistrellus pygmaeus | #b15928 |
Pipistrellus spp. | #fdbf6f |
Rhinolophus ferrumequinum | #e31a1c |
Rhinolophus hipposideros | #33a02c |
Nyctalus noctula | #cab2d6 |
Nyctalus leisleri | #fb9a99 |
Nyctalus spp. | #eee8cd |
Eptesicus serotinus | #008b8b |