knitr::opts_chunk$set(echo = TRUE)
Goal: Plot number of specimens by age.
Worked:
ant_data <- read_csv("wright/data/FossilAnts.csv") sepped <- ant_data %>% separate(min_mx, c("min_age", "max_age"), "_") ggplot(sepped) + geom_bar(aes(y = min_age))
Did Not Work:
min
or max
because R will think you're calling min()
and max()
functionsTrying revision management for the first time.
-[ x ] First push worked
summary(cars)
You can also embed plots, for example:
plot(pressure)
Note that the echo = FALSE
parameter was added to the code chunk to prevent printing of the R code that generated the plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.