This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(ggVennDiagram) | |
| library(RColorBrewer) | |
| library(tidyverse) | |
| library(glue) | |
| venn_3d <- function ( | |
| total_variance = 100, # total number of items | |
| unique_x1 = 0.3, # 30% unique to X1 | |
| unique_x2 = 0.3, # 30% unique to X2 | |
| unique_y = 0.3, # 30% unique to Y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ########################################################### | |
| # Find duplicated consecutive words in a character string # | |
| # or in a RMarkdown document # | |
| # ------------------------------------------------------- # | |
| # Written by Ladislas Nalborczyk # | |
| # Contact: ladislas.nalborczyk@gmail.com # | |
| # Last updated on January 2, 2023 # | |
| ########################################################### | |
| # loading some packages |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ########################################################### | |
| # Emphasising some references in a RMarkdown document # | |
| # ------------------------------------------------------- # | |
| # Written by Ladislas Nalborczyk # | |
| # Contact: ladislas.nalborczyk@gmail.com # | |
| # Last updated on January 2, 2023 # | |
| ########################################################### | |
| # knitting the original Rmd file (with "keep_tex: true" in YAML) | |
| rmarkdown::render(input = "some_file.Rmd") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ############################################################################ | |
| # estimation via the base R optim function | |
| # code adapted from Farrell & Lewandowsky (2018, ch.3) | |
| # https://github.com/psy-farrell/computational-modelling | |
| ################################################################# | |
| library(hrbrthemes) | |
| library(tidyverse) | |
| library(gganimate) | |
| library(magick) |