I was wondering: would it be possible to fit every. single. species. of Alaskan mammal on a single 18x24 poster? Answer: yes! It is possible!
Caveats: only one front foot is shown for each species. Also I did not include the dew claws for ungulates. :)
An infographic to answer the question: why should i care about budget cuts to the university of alaska?
Earlier today I helped make a figure for a proposal about marmot hibernation patterns. The goal was to make a figure similar to Figure 1 in Lee et al. 2016 (J. Mamm.), which shows the body temperatures of four marmots as well as the temperature of the soil in their burrow:
I was working with a 3-column dataset in tab-delimited (.txt) format that looked like this:
Date.Time Temp Label
5-9-2008 14:04 -3.67 soil
5-9-2008 14:44 -3.64 soil
5-9-2008 15:24 -3.61 soil
5-2-2009 14:36 37.23 marmot
5-2-2009 14:56 37.23 marmot
5-2-2009 15:16 36.12 marmot
The following code is my attempt to replicate the figure above using ggplot2 in R:
#load the ggplot2 library
#import the data file
Data <- read.delim("~/Desktop/Marmots_and_Soil_Data.txt")
#define the format of our Date.Time column
Data$Date.Time<-strptime(Data$Date.Time, format= "%m-%d-%Y %H:%M")
#convert the Date.Time column to a format that ggplot2 can read
#plot the data
ggplot(data=Data, aes(x=Date.Time, y=Temp, group=Label, colour=Label)) +
ylab("Temperature (ºC)") +
I have to share a website I just found: colorbrewer2.org
It allows you to select the number of data classes you have (from 3-12), and it provides attractive color palette options. You can even toggle a "colorblind friendly" option.
To find colors that are maximally divergent from one another, choose a "diverging" palette.