Skip to content

Commit

Permalink
Change logo
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Apr 1, 2023
1 parent 48c2a27 commit bb294ad
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 35 deletions.
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
},
"applicationCategory": "Macroeconomics",
"isPartOf": "https://ropenspain.es/",
"fileSize": "778.292KB",
"fileSize": "778.4KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand Down
49 changes: 15 additions & 34 deletions data-raw/logo.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,18 @@ library(hexSticker)
library(showtext)
library(tidyBdE)

# IE <- bde_catalog_search("(.*)PIB(.*)Tasa interanual", catalog = "IE")

PIB_ESP <-
bde_series_full_load("BE0201.csv") %>%
select(c("Date", "BE_2_1.21"))

PIB_selected <- bde_series_full_load("IE0201.csv") %>%
select(c("Date", paste0("IE_2_1.", 5:7)))



bde_col_names <- unique(c(names(PIB_ESP), names(PIB_selected)))

PIB_merge <- PIB_ESP %>%
inner_join(PIB_selected) %>%
plotseries <- bde_ind_gdp_var("GDP YoY", out_format = "long") %>%
bind_rows(
bde_ind_unemployment_rate("Unemployment Rate", out_format = "long")
) %>%
drop_na() %>%
pivot_longer(cols = bde_col_names[bde_col_names != "Date"]) %>%
filter(Date > "2000-01-01" & Date <= "2018-12-31") %>%
mutate(PIB_perc = value)


g <- ggplot(PIB_merge, aes(x = Date, y = PIB_perc)) +
geom_hline(yintercept = 0, colour = "black") +
geom_line(aes(color = name, linetype = name), size = 0.5) +
scale_linetype_manual(values = c(rep("solid", 3), "dashed")) +
bde_scale_color_vivid() +
theme_tidybde() +
theme(
legend.position = "none",
line = element_line(size = 0.2)
) +
theme_transparent()
filter(Date >= "2010-01-01")

g <- ggplot(plotseries, aes(x = Date, y = serie_value)) +
geom_line(aes(color = serie_name), linewidth = 0.25, show.legend = FALSE) +
theme_minimal() +
labs(x="", y="") +
scale_color_bde_d(palette = "bde_vivid_pal") # Custom palette on the package

# font_add_google("Roboto", "roboto")
showtext_auto()
Expand All @@ -52,9 +31,11 @@ sticker(
p_color = "#993300",
h_fill = "grey95",
h_color = "#993300",
s_width = 1.83,
s_width = 1.6,
s_height = 1,
p_size = 30,
s_x = 1.01,
s_y = 0.75,
s_x = .95,
s_y = 0.7,
)

pkgdown::build_favicons(overwrite = TRUE)
Binary file modified man/figures/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pkgdown/favicon/favicon.ico
Binary file not shown.

0 comments on commit bb294ad

Please sign in to comment.