Skip to content

Instantly share code, notes, and snippets.

@ibecav
Created January 5, 2023 14:01
Show Gist options
  • Save ibecav/5c6802ec529c055da677141b45342619 to your computer and use it in GitHub Desktop.
Save ibecav/5c6802ec529c055da677141b45342619 to your computer and use it in GitHub Desktop.
Testing 1 2 3
theme_ik <- function(
base_size = 12,
base_family = "sans",
labs_color = "#074949",
axis_color = "#002F2F",
bg_color = "#eeffff",
grid_color = "#ccffff"
){
theme_minimal(base_size = base_size, base_family = base_family)+
theme(
plot.title = element_text(size = base_size*2, face = 2, color = labs_color),
plot.subtitle = element_text(color = labs_color),
plot.caption = element_text(color = labs_color),
axis.title = element_text(color = axis_color),
axis.text = element_text(color = axis_color),
plot.background = element_rect(color = NA, fill = bg_color),
legend.position = "bottom",
panel.spacing = unit(1, "lines"),
panel.grid.major = element_line(color = grid_color),
panel.grid.minor = element_blank(),
line = element_line(lineend = "round")
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment