Questions tagged [xaringan]

An R package to create HTML5 slides based on R Markdown and the JavaScript library remark.js.

An R package to create HTML5 slides based on R Markdown and the JavaScript library remark.js . See its Github repository for more information: https://github.com/yihui/xaringan.

224 questions
18
votes
2 answers

Incremental slides do not work with a two-column layout

I am using the xaringan package for r for a presentation: https://cran.r-project.org/web/packages/xaringan/index.html which builds upon the remark.js library. I would like to use a two column layout, i.e. something like this from the original…
Woosah
  • 422
  • 5
  • 10
17
votes
1 answer

How can I modifiy the positions of the text and logo on RMarkdown title slide

Because of the picture I have at the bottom of my title slide, I want to: move all title, subtitle and author up from their center positions. remove the Rlogo in the title slide only (don't really know how to do it). I could only remove slide…
Tung
  • 26,371
  • 7
  • 91
  • 115
15
votes
2 answers

xaringan slide separator not separating slides

In this example xaringan presentation, why are both the ## blank page and the leaflet map on the same slide, given I've separated them by the new-slide separator --- ? --- title: "map test" output: xaringan::moon_reader: css: ["default"] …
SymbolixAU
  • 25,502
  • 4
  • 67
  • 139
13
votes
1 answer

Print xaringan slides with presenter notes

Is it possible to print xaringan slides with the presenter notes? I know I can print the slides using these methods (https://github.com/yihui/xaringan/wiki/Export-Slides-to-PDF). But I can't get a print out with the presenter notes. Thanks!
Daniel D. Sjoberg
  • 8,820
  • 2
  • 12
  • 28
13
votes
1 answer

Automatically reloading shiny app when add changes

I would like to have an option (when working locally) which allows me to see changes in my shiny app automatically after I put some changes in server.R or ui.R file. It is really annoying to manually rerun runApp function every time I add a new…
Nicolabo
  • 1,337
  • 12
  • 30
12
votes
2 answers

How to resize images in Xaringan presentation?

I'm trying to switch from ioslide to xaringan. I'm not able to properly resize a ggplot image to make full screen or al least to occupy as much space as possible. I'm using both fig.height/width and out.height/width arguments but only one dimension…
12
votes
1 answer

xaringan: Easy way to change aspect ratio?

I would like to change the aspect ratio of a xaringan presentation to 16:9. I guess it would be possible if I would create a custom css theme. However, this would be somewhat of an overkill for me. So, is there any really simple way of doing that?
der_grund
  • 1,898
  • 20
  • 36
11
votes
1 answer

Programmatically generate slides in R with xaringan and plotly

I recently started using xaringan and it's really neat. Thanks Yihui for the great package. One question I was wondering, is it possible to programmatically generate slides, each containing a plotly plot, in a for loop? I know I can generate slides…
Yue Jiang
  • 1,271
  • 10
  • 15
10
votes
1 answer

Customize font size for all the slides in xaringan

I'm using Yihui's awesome package xaringan to build html slides, and this might be a very simple question for those who are familiar with xaringan or css: I can't figure out how to set the font size of all slides. I tried to define the font-size in…
sammo3182
  • 153
  • 1
  • 9
10
votes
1 answer

xaringan: Changing code background for specific chunks

In this feature request back in 2016 Yihui shows, at the bottom, how to have different code chunks have different backgrounds in R Markdown. I've attached a screenshot of this here. Is there a way to do this with xaringan? I found this answer,…
Daniel Anderson
  • 2,394
  • 13
  • 26
8
votes
1 answer

how to set up theorem environment in the Rmarkdown presentation

I am new to Rmarkdown and plan to use ioslides/slidy/xaringan to do my presentation. I used to use the beamer to do presentations. In the beamer, I have theorem environment which is designed to mathematics theorems. I want to be able to have that…
Slm2004
  • 225
  • 1
  • 5
8
votes
1 answer

Can I center and middle a figure in html xaringan R

I notice that you can center and middle the layout of a slide using class: center, middle in xaringan slides, but that changes the title and layout of the entire slide. You can also center the image by: .center[ ![]('foo.svg') ] But I wonder if I…
Miao Cai
  • 902
  • 9
  • 25
8
votes
1 answer

how to embed video (avi/mpg4) in Xaringan slides

I'm trying to embed some local videos into my xaringsn presentation. I've succesfully embedded GIFs but I need more quality and AVI or MPG4 are mandatory The issue is I can't get the video embedded no matter if I use markdown syntax or html…
Forge
  • 1,587
  • 1
  • 15
  • 36
7
votes
1 answer

Vertically scrollable code with RStudio and xaringan

I am currently preparing html slides for an R modelling workshop, for which I use the awesome xaringan package for R. It is based on remark.js. Compared to ioslides and slidy, it does much better suit my expectations. I am absolutely excited! One…
tpetzoldt
  • 5,338
  • 2
  • 12
  • 29
7
votes
2 answers

xaringan set the document title dynamically

In R-markdown there is is an option to move the title: out of the main YAML, as described in the R Markdown Cookbook. But, in a Xaringan slide set the new --- seems to conflict with the idea of new slide. The below code works, but when move line #2,…
Eric Fail
  • 8,191
  • 8
  • 72
  • 128
1
2 3
14 15