Skip to content

Commit a551685

Browse files
committed
Style the images to fit on slides.
1 parent 725e918 commit a551685

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

analysis/reproducibility.Rmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ author: "John Blischak"
44
date: "2020-06-18"
55
output:
66
ioslides_presentation:
7+
css: "slides.css"
78
widescreen: true
89
editor_options:
910
chunk_output_type: console

analysis/slides.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
img {
2+
display: block;
3+
margin: 0 auto;
4+
max-width: 90%;
5+
max-height: 75%;
6+
}

code/create-slides.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
rmarkdown::render(
44
input = "analysis/reproducibility.Rmd",
55
output_format = rmarkdown::ioslides_presentation(
6-
widescreen = TRUE
6+
widescreen = TRUE,
7+
css = "slides.css"
78
),
89
output_file = "reproducibility-slides.html",
910
output_dir = "docs/"
1011
)
12+
13+
browseURL("docs/reproducibility-slides.html")

0 commit comments

Comments
 (0)