-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_plantilla.R
56 lines (42 loc) · 1.12 KB
/
_plantilla.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# paquetes ----------------------------------------------------------------
# {glue}, {ggtext}, {showtext}, {tidyverse}
# se cargan automáticamente
# fuente ------------------------------------------------------------------
# colores
c1 <- "#000000"
c2 <- "#000000"
c3 <- "#000000"
# fuente: Ubuntu
font_add(
family = "ubuntu",
regular = "fuente/Ubuntu-Regular.ttf",
bold = "fuente/Ubuntu-Bold.ttf",
italic = "fuente/Ubuntu-Italic.ttf"
)
# monoespacio & íconos
font_add(
family = "jet",
regular = "fuente/JetBrainsMonoNLNerdFontMono-Regular.ttf"
)
showtext_auto()
showtext_opts(dpi = 300)
# caption
mi_caption <- caption(
fuente1 = "FUENTE DE DATOS", col = c1, week = semana_numero
)
# datos -------------------------------------------------------------------
tuesdata <- tidytuesdayR::tt_load(año, semana_numero)
tuesdata
# figura ------------------------------------------------------------------
# figura
# g <- ggplot()
# guardo
# ggsave(
# plot = g,
# filename = "semana_carpeta/viz.png",
# width = 30,
# height = 30,
# units = "cm"
# )
# abro
# browseURL(paste0(getwd(), "/semana_carpeta/viz.png"))