Example Post

2021-02-12
Featured Image

This file is from content/post/2021-02-09-example/index.Rmd. I made it by running `blogdown::new_post(“example”, ext = “.Rmd”)

Note that images like the one above are stored in static/images in your project folder.

Just like an RMarkdown

Show code …

library(tidyverse)
msleep %>%
  group_by(vore) %>%
  summarize(`average body weight` = mean(bodywt))
## # A tibble: 5 x 2
##   vore    `average body weight`
## * <chr>                   <dbl>
## 1 carni                  90.8  
## 2 herbi                 367.   
## 3 insecti                12.9  
## 4 omni                   12.7  
## 5 <NA>                    0.858


… or a nicer table …

vore average body weight
carni 90.75111
herbi 366.87725
insecti 12.92160
omni 12.71800
NA 0.85800

… or make a plot.

ggplot(msleep, aes(x = sleep_total, y = bodywt)) +
  geom_point() + scale_x_log10() + scale_y_log10()
Wow captions too!

Figure 1: Wow captions too!

I can even put some math exe^x or more eπi+1=0.e^{\pi i} + 1 = 0.


Creating a new post

To create a new post you can run

blogdown::new_post("Post title", ext = ".Rmd")

Alternatively, you can use the “Addins” menu.

Just make sure to select .Rmd for the format so you can include and run R code.

Previous Blog Post