library(tidyverse)
mammals <- mammal_data orders <- mammals %>% filter(order == 'Artiodactyla' | order == 'Carnivora' | order == 'Cetacea' | order == 'Insectivora' | order == 'Lagomorpha' | order == 'Primates' | order == 'Rodentia' )
orders %>% mutate(offspring.year = litter.size * litters.year) %>% ggplot(aes(x=offspring.year, y=weaning.mo.)) + geom_point() + geom_smooth(method='loess', alpha=0.5)
orders %>% ggplot(aes(x=gestation.mo., y=weaning.mo.)) + geom_point() + geom_smooth(method='loess', alpha=0.5)
orders %>% ggplot(aes(x=AFR.mo., y=max..life.mo.)) + geom_point() + geom_smooth(method='loess', alpha=0.5)
orders %>% mutate(offspring.year = litter.size * litters.year) %>% ggplot(aes(x=AFR.mo., y=offspring.year)) + geom_point() + geom_smooth(method='loess', alpha=0.5)
orders %>% ggplot(aes(x=max..life.mo., y=AFR.mo.)) + geom_point() + geom_smooth(method='loess', alpha=0.5)
orders %>% mutate(offspring.year = litter.size * litters.year) %>% ggplot(aes(y=max..life.mo., x=offspring.year)) + geom_point()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.