Sfoglia il codice sorgente

reduced fontsize

pull/10/head
David 7 anni fa
parent
commit
0d9da0dab2
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      R/plot_helpers.R

+ 2
- 2
R/plot_helpers.R Vedi File

geom_tile(width = 0.9, height = 0.9) + geom_tile(width = 0.9, height = 0.9) +
coord_equal() + coord_equal() +
geom_text(data = d %>% filter(!is.na(val)), aes(label = val), color = "white", geom_text(data = d %>% filter(!is.na(val)), aes(label = val), color = "white",
family = text_family, size = 12, fontface = "bold") +
family = text_family, size = 10) +
scale_fill_identity() + scale_fill_identity() +
scale_alpha_identity() + scale_alpha_identity() +
labs(title = title) + labs(title = title) +
theme_void() + theme_void() +
theme(plot.title = element_text(family = title_family, hjust = 0.5, size = 24))
theme(plot.title = element_text(family = title_family, hjust = 0.5, size = 20))
} }

Loading…
Annulla
Salva