Revisión | 5ee2b132b8bef339bc188b969a8d955c5ba3ff56 (tree) |
---|---|
Tiempo | 2024-01-07 06:13:34 |
Autor | Lorenzo Isella <lorenzo.isella@gmai...> |
Commiter | Lorenzo Isella |
I now give the currency (EUR or USD) as an input parameter.
@@ -18,7 +18,8 @@ | ||
18 | 18 | |
19 | 19 | initial_day <- gsub('-', '', today()-days_back) |
20 | 20 | |
21 | - | |
21 | +currency <- ## "EUR" | |
22 | +"USD" | |
22 | 23 | |
23 | 24 | mylist_slug <- c("cardano" , "iotex", "cosmos", "polygon", |
24 | 25 | "algorand", "kava", "solana", "cartesi", |
@@ -38,7 +39,7 @@ | ||
38 | 39 | filter(slug %in% mylist_slug) |
39 | 40 | |
40 | 41 | coin_hist <- crypto_history(coins, |
41 | - convert = "EUR", | |
42 | + convert = currency, | |
42 | 43 | ## limit=3, |
43 | 44 | start_date=initial_day, |
44 | 45 | end_date=final_day, finalWait=FALSE) |> |
@@ -165,7 +166,7 @@ | ||
165 | 166 | ggtitle(title_name)+ |
166 | 167 | facet_wrap( ~symbol, nrow = 6, scales = "free_y")+ |
167 | 168 | my_ggplot_theme2("right")+ |
168 | - ylab("Coin Price in EUR")+ | |
169 | + ylab(paste("Coin Price in ", currency, sep=""))+ | |
169 | 170 | xlab(NULL) |
170 | 171 | |
171 | 172 | fname <- paste("./history_usdt/coin_prices.pdf") |
@@ -180,7 +181,7 @@ | ||
180 | 181 | ggtitle(title_name)+ |
181 | 182 | facet_wrap( ~symbol, nrow = 6, scales = "free_y")+ |
182 | 183 | my_ggplot_theme2("right")+ |
183 | - ylab("Coin Volume in EUR")+ | |
184 | + ylab(paste("Coin Volume in ", currency, sep=""))+ | |
184 | 185 | xlab(NULL) |
185 | 186 | |
186 | 187 | fname <- paste("./history_usdt/coin_volumes.pdf") |