Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David Carayon
InraeThemes
Commits
546c9b51
Commit
546c9b51
authored
Dec 16, 2020
by
David Carayon
Browse files
new xaringan template
parent
4486189f
Changes
37
Hide whitespace changes
Inline
Side-by-side
DESCRIPTION
View file @
546c9b51
...
...
@@ -24,4 +24,6 @@ Imports:
gt,
pagedown,
rmarkdown,
revealjs
revealjs,
scales,
xaringan
README.Rmd
View file @
546c9b51
...
...
@@ -71,12 +71,18 @@ Rapport PDF ou HTML utilisant {pagedown}

## Présentation
dynamique INRAE
## Présentation
INRAE RevealJS
Présentation HTML et/ou PDF utilisant {revealjs} et `pagedown::chrome_print()`

## Présentation INRAE RemarkJS
Présentation HTML et/ou PDF utilisant {remarkjs} et `pagedown::chrome_print()`

## Rapport simplifié INRAE
Rapport avec moins de formattage que le rapport précédent, dédié aux documents de travail pour partager des résultats d'analyse.
...
...
README.md
View file @
546c9b51
...
...
@@ -69,13 +69,20 @@ Rapport PDF ou HTML utilisant {pagedown}

## Présentation
dynamique INRAE
## Présentation
INRAE RevealJS
Présentation HTML et/ou PDF utilisant {revealjs} et
`pagedown::chrome_print()`

## Présentation INRAE RemarkJS
Présentation HTML et/ou PDF utilisant {remarkjs} et
`pagedown::chrome_print()`

## Rapport simplifié INRAE
Rapport avec moins de formattage que le rapport précédent, dédié aux
...
...
inst/rmarkdown/templates/presentation
_inrae_
reveal/skeleton/skeleton.Rmd
→
inst/rmarkdown/templates/
inrae-
presentation
-
reveal/skeleton/skeleton.Rmd
View file @
546c9b51
File moved
inst/rmarkdown/templates/presentation
_inrae_
reveal/skeleton/styles/agriculture.jpg
→
inst/rmarkdown/templates/
inrae-
presentation
-
reveal/skeleton/styles/agriculture.jpg
View file @
546c9b51
File moved
inst/rmarkdown/templates/presentation
_inrae_
reveal/skeleton/styles/header.html
→
inst/rmarkdown/templates/
inrae-
presentation
-
reveal/skeleton/styles/header.html
View file @
546c9b51
File moved
inst/rmarkdown/templates/presentation
_inrae_
reveal/skeleton/styles/img1.jpeg
→
inst/rmarkdown/templates/
inrae-
presentation
-
reveal/skeleton/styles/img1.jpeg
View file @
546c9b51
File moved
inst/rmarkdown/templates/presentation
_inrae_
reveal/skeleton/styles/img2.jpeg
→
inst/rmarkdown/templates/
inrae-
presentation
-
reveal/skeleton/styles/img2.jpeg
View file @
546c9b51
File moved
inst/rmarkdown/templates/presentation
_inrae_
reveal/skeleton/styles/logo_INRAE.png
→
inst/rmarkdown/templates/
inrae-
presentation
-
reveal/skeleton/styles/logo_INRAE.png
View file @
546c9b51
File moved
inst/rmarkdown/templates/presentation
_inrae_
reveal/skeleton/styles/reveal_INRAE.css
→
inst/rmarkdown/templates/
inrae-
presentation
-
reveal/skeleton/styles/reveal_INRAE.css
View file @
546c9b51
File moved
inst/rmarkdown/templates/presentation
_inrae_
reveal/skeleton/styles/sigle-inrae-plein.png
→
inst/rmarkdown/templates/
inrae-
presentation
-
reveal/skeleton/styles/sigle-inrae-plein.png
View file @
546c9b51
File moved
inst/rmarkdown/templates/
analysis_report
/template.yaml
→
inst/rmarkdown/templates/
inrae-presentation-reveal
/template.yaml
View file @
546c9b51
name
:
Rapports reproductibles
name
:
Présentation revealJS INRAE
description
:
>
Rapports reproductibles
Présentation revealJS INRAE
create_dir
:
FALSE
inst/rmarkdown/templates/inrae-presentation-xaringan/skeleton/skeleton.Rmd
0 → 100644
View file @
546c9b51
---
title: "Titre du document"
subtitle: "Sous-Titre du document"
author: "Auteur"
institute: "Affiliation"
date: "Evenement<br><br>Date"
output:
xaringan::moon_reader:
css: [styles/remark_inrae.css, default]
lib_dir: libs
nature:
titleSlideClass: [middle, right]
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
ratio: "16:9"
# Dé-commenter la ligne ci-dessous pour une sortie PDF
# knit: pagedown::chrome_print
---
layout: true
<div class="my-sidebar"></div>
```{r setup, include=FALSE}
options(htmltools.dir.version = FALSE)
knitr::opts_chunk$set(
echo = FALSE,
message = FALSE,
warning = FALSE,
dpi = 300,
out.width = "80%",
dev.args=list(bg="transparent")
)
library(InraeThemes)
library(ggplot2)
library(gt)
```
---
class: center, middle
# Première section
---
# Hello World
Cette présentation a été construite à partir de **xaringan**, pouvant être consulté sur [Github](https://github.com/yihui/xaringan):
```{r eval=FALSE, tidy=FALSE, echo = TRUE}
devtools::install_github("yihui/xaringan")
```
--
Une première phrase :
--
- Première puce incrémentale
--
- Astuce : Prévisualisation en direct de la présentation via l'addin Rstudio "Infinite Moon Reader"[1]
.footnote[
[1] Note de bas de page
]
---
class: dark, center, middle
# Slide de section alternative
---
# Diapositive avec graphique
Ci-dessous un graphique avec un thème INRAE :
```{r plot, out.width = "65%", fig.align = "center", fig.width = 12}
ggplot(mtcars, aes(x=wt, y=mpg)) +
geom_point(aes(color = as.factor(gear)))+
scale_color_inrae_n5()+
geom_smooth(color = couleurs_inrae[1]) +
labs(x = "Valeur de X", y = "Valeur de Y", title = "Titre du graphique", subtitle = "Sous-titre", color = "couleur") +
theme_inrae() +
theme(panel.background = element_rect(fill = "transparent", colour = NA),
plot.background = element_rect(fill = "transparent", colour = NA))
```
> Ceci est un bloc de citation.
---
# Mise en page avancée
.pull-left[
<img src="styles/img1.jpeg" width=300 height=400>
]
.pull-right[
<img src="styles/img2.jpeg" width=300 height=400>
]
---
# Diapositive avec un tableau
```{r gt}
iris %>%
head(8) %>%
gt() %>%
tab_header(title = "Exemple de tableau sur le jeu de données iris") %>%
tab_options(table.width = pct(100))
```
---
# Avec affichage du code
```{r echo = TRUE, out.width = "60%", fig.align="center", fig.width = 12, fig.height = 4}
# On charge un package
library(ggplot2)
# On trace un graphique ggplot avec un second theme INRAE
ggplot(iris, aes(x = Species, y = Sepal.Length, fill = Species)) +
geom_boxplot(color = "black") +
geom_jitter(shape = 21, color = "black", alpha = 0.6)+
labs(x = "Species", y = "Sepal Length") +
theme_inrae_1()+
theme(panel.background = element_rect(fill = "transparent", colour = NA),
plot.background = element_rect(fill = "transparent", colour = NA))
```
---
class: center, middle
background-image: url("styles/agriculture.jpg")
background-size: "100%"
# Merci de votre attention !
inst/rmarkdown/templates/inrae-presentation-xaringan/skeleton/styles/agriculture.jpg
0 → 100755
View file @
546c9b51
513 KB
inst/rmarkdown/templates/inrae-presentation-xaringan/skeleton/styles/img1.jpeg
0 → 100755
View file @
546c9b51
132 KB
inst/rmarkdown/templates/inrae-presentation-xaringan/skeleton/styles/img2.jpeg
0 → 100755
View file @
546c9b51
149 KB
inst/rmarkdown/templates/inrae-presentation-xaringan/skeleton/styles/inrae.png
0 → 100755
View file @
546c9b51
2.6 KB
inst/rmarkdown/templates/inrae-presentation-xaringan/skeleton/styles/remark_inrae.css
0 → 100755
View file @
546c9b51
.remark-slide-content
{
background-color
:
#fff
;
font-size
:
25px
!important
;
}
div
.my-sidebar
{
position
:
fixed
;
right
:
66%
;
bottom
:
45%
;
height
:
2.5em
;
width
:
calc
(
110%
*
.55
);
/* fix sidebar height */
padding
:
0.5em
;
opacity
:
0.7
;
background-color
:
#ffffff
;
background-position
:
8%
50%
;
background-origin
:
content-box
;
background-repeat
:
no-repeat
;
background-size
:
20%
;
background-image
:
url("inrae.png")
;
transform
:
rotate
(
-90deg
);
}
.inverse
{
background-color
:
#66bfdd
;
text-shadow
:
none
;
}
.dark
{
background-color
:
#222
;
text-shadow
:
none
;
color
:
#ddd
;
}
.title-slide
{
padding
:
20px
;
background-color
:
#fff
;
background-origin
:
padding-box
;
background-size
:
50%
;
background-position
:
-2em
;
background-image
:
url("sigle-inrae.png")
;
}
.title-slide
.remark-slide-number
{
display
:
none
;
}
h1
,
h2
,
h3
{
text-shadow
:
0px
0px
0px
rgba
(
0
,
0
,
0
,
0
);
/* shadows */
color
:
#00a3a6
;
font-family
:
"Calibri"
;
font-weight
:
bold
;
}
.inverse
h1
,
.inverse
h2
,
.inverse
h3
{
border
:
none
;
color
:
#fff
;
}
.title-slide
h1
,
.title-slide
h2
,
.title-slide
h3
{
border
:
none
;
color
:
#00a3a6
;
text-shadow
:
0
0
10px
#fff
;
}
a
,
a
>
code
{
color
:
#901A1E
;
}
.remark-code-line-highlighted
{
background-color
:
#66bfdd60
;
}
\ No newline at end of file
inst/rmarkdown/templates/inrae-presentation-xaringan/skeleton/styles/sigle-inrae.png
0 → 100755
View file @
546c9b51
16.2 KB
inst/rmarkdown/templates/inrae-presentation-xaringan/template.yaml
0 → 100644
View file @
546c9b51
name
:
Présentation remarkJS INRAE
description
:
>
Présentation Xaringan (remarkJS) INRAE
create_dir
:
FALSE
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment