# =============================================================================
# Global settings for R scripts
# =============================================================================
library(ggplot2)
library(here)
data_dir = here::here("./data")
fig_dir = here::here("./paper/figures")
res_dir = here::here("./results")
# define color
gg_color_hue = function(n) {
hues = seq(15, 375, length = n + 1)
hcl(h = hues, l = 65, c = 100)[1:n]
}
hue = gg_color_hue(2)
## ggplot black and white
theme_set(theme_bw() +
theme(strip.text = element_text(face = "bold"),
strip.background = element_rect(fill = "white",colour = "white"),
text = element_text(size=12)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.