Skip to content

Instantly share code, notes, and snippets.

View Tutuchan's full-sized avatar

Pierre Formont Tutuchan

View GitHub Profile
@Tutuchan
Tutuchan / diamonds_template.Rmd
Last active December 21, 2019 14:24
Loop over .Rmd chunks
```{r diamonds_{{color}}_{{cut}}_plot}
diamonds %>%
filter(
color == "{{color}}",
cut == "{{cut}}"
) %>%
ggplot(aes(carat, price, colour = clarity)) +
geom_point(show.legend = FALSE) +
labs(
title = 'Price by carat for diamonds with color {{color}} and cut {{cut}}'
---
title: "loop over widgets"
author: "Tutuchan"
date: "14 septembre 2016"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(chartjs)
@Tutuchan
Tutuchan / chartjs_combo.Rmd
Created April 27, 2016 07:36
Combo bar line
---
title: "Flex Dashboard"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
horizontal_layout: fill
---
```{r setup, include=FALSE}