-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.R
34 lines (25 loc) · 894 Bytes
/
global.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Installing and Loading required packages.
# install.packages("tidyverse")
# install.packages("readxl")
# install.packages("janitor")
library(tidyverse)
library(readxl)
library(janitor)
# Importing the dataset (In current working directory)
coffee_data <- read_xlsx("Coffee Caffeine Content.xlsx")
# Cleaning Names
coffee_data <- coffee_data |>
clean_names()
#### Theme set ----
theme_set(theme_minimal(base_size = 12, base_family = "Open Sans"))
#### Theme update ----
theme_update(
axis.ticks = element_line(color = "grey9"),
axis.ticks.length = unit(0.5, "lines"),
panel.grid.minor = element_blank(),
legend.title = element_text(size = 12),
legend.text = element_text(color = "grey9"),
plot.title = element_text(size = 18, face = "bold"),
plot.subtitle = element_text(size = 12, color = "grey9"),
plot.caption = element_text(size = 9, margin = margin(t = 15))
)