You should receive an HTML file with the same name as R Markdown document (such as xaringan-example.html), as shown in Figure 8.1. Try clicking the Knit button to see what this looks like. The moon_reader output format takes R Markdown documents and knits them as slides. Rmd document places the front matter in a special block: The rest of your presentation code remains in rmarkdown, and should require minimal work to convert. The average bill length is `r average_bill_length` millimeters. Rmd you need to change file extension (easy) and the front matter of the markdown document (slightly more involved). title: "Penguins Report" author: "David Keyes" date: "" output: xaringan::moon_reader - ``` average_bill_length % summarize(avg_bill_length = mean(bill_length_mm, na.rm = TRUE)) %>% pull(avg_bill_length) ``` The chart shows the distribution of bill lengths. Making presentations with xaringan lets more people engage with your slides. For example, people with limited vision can access HTML documents in ways that allow them to view the content, such as by increasing the text size or using screen readers. HTML documents are easy to manipulate, giving viewers control over their appearance. We’ll discuss ways to publish your presentations online in Chapter 9.Ī second benefit of using xaringan is accessibility. Instead, you can send someone the presentation by just sharing a link. For instance, because xaringan creates slides as HTML documents, you can post them online without needing to email them or print them out for viewers. She argues that the package’s benefits go well beyond making good-looking slides. Silvia Canelón, a data analyst in the Urban Health Lab at the University of Pennsylvania, has taught the xaringan package extensively. However, using the xaringan package provides advantages over these options. In R Studio, you might have noticed that the Presentation option you see when creating a new R Markdown document provides several options for making slides, such as knitting an R Markdown document to PowerPoint.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |