| symbol | Symbol | Nobs |
|---|---|---|
| CL=F | Crude Oil Futures | 6537 |
| TTF=F | Dutch TTF Natural Gas Calendar | 2231 |
Energy - energy
Data - Yahoo
Last observation: 4 sept. 2026 (N = 2)
First observation: 23 août 2000 (N = 1)
Last data update: 05 sept. 2026, 01:00
Last compile: 05 sept. 2026, 01:04
symbol
Natural Gas prices
Linear
All
Code
energy |>
filter(symbol %in% c("TTF=F")) |>
left_join(symbol, by = "symbol") |>
ggplot() + geom_line(aes(x = date, y = close, color = Symbol)) + theme_minimal() +
scale_color_commodity() +
theme(legend.title = element_blank(),
legend.position = c(0.5, 0.9)) +
scale_y_continuous(breaks = seq(0, 1000, 20),
labels = dollar_format(pre = "", su = "€")) +
scale_x_date(breaks = as.Date(paste0(seq(1945, 2100, 1), "-01-01")),
labels = date_format("%Y")) +
xlab("") + ylab("Price per Megawatt-Hour")
2021-
Code
energy |>
filter(symbol %in% c("TTF=F"),
date >= as.Date("2021-01-01")) |>
left_join(symbol, by = "symbol") |>
ggplot() + geom_line(aes(x = date, y = close, color = Symbol)) + theme_minimal() +
scale_color_commodity() +
theme(legend.title = element_blank(),
legend.position = c(0.5, 0.9)) +
scale_y_continuous(breaks = seq(0, 1000, 20),
labels = dollar_format(pre = "", su = "€")) +
scale_x_date(breaks = as.Date(paste0(seq(1945, 2100, 1), "-01-01")),
labels = date_format("%Y")) +
xlab("") + ylab("Price per Megawatt-Hour")
Log
All
Code
energy |>
filter(symbol %in% c("TTF=F")) |>
left_join(symbol, by = "symbol") |>
ggplot() + geom_line(aes(x = date, y = close, color = Symbol)) + theme_minimal() +
scale_color_commodity() +
theme(legend.title = element_blank(),
legend.position = c(0.5, 0.9)) +
scale_y_log10(breaks = c(1, 2, 3, 5, 8, 10, 20, 50, 100, 200, 500),
labels = dollar_format(pre = "", su = "€", acc = 1)) +
scale_x_date(breaks = as.Date(paste0(seq(1945, 2100, 1), "-01-01")),
labels = date_format("%Y")) +
xlab("") + ylab("Price per Megawatt-Hour")
2021-
Code
energy |>
filter(symbol %in% c("TTF=F"),
date >= as.Date("2021-01-01")) |>
left_join(symbol, by = "symbol") |>
ggplot() + geom_line(aes(x = date, y = close, color = Symbol)) + theme_minimal() +
scale_color_commodity() +
theme(legend.title = element_blank(),
legend.position = c(0.5, 0.9)) +
scale_y_log10(breaks = c(1, 2, 3, 5, 8, 10, 20, 50, 100, 200, 500),
labels = dollar_format(pre = "", su = "€", acc = 1)) +
scale_x_date(breaks = as.Date(paste0(seq(1945, 2100, 1), "-01-01")),
labels = date_format("%Y")) +
xlab("") + ylab("Price per Megawatt-Hour")