Difference between revisions of "Electricity prices in Nordic countries"

From Testiwiki
Jump to: navigation, search
(placeholder)
 
m
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
[[Category:Code under inspection]]
 
{{variable|moderator=Jouni|stub=Yes}}
 
{{variable|moderator=Jouni|stub=Yes}}
  
Line 15: Line 16:
  
 
=== Formula ===
 
=== Formula ===
 +
 +
<rcode graphics = "1">
 +
library(OpasnetUtils)
 +
library(ggplot2)
 +
library(xtable)
 +
 +
data <- tidy(op_baseGetData("opasnet_base", "Op_en5804"), objname = "price")
 +
 +
months <- c(4, 8, 12, 2, 1, 7, 6, 3, 5, 11, 10, 9) / 12 - 1/24
 +
data$Time <- months[as.numeric(data$Month)] + as.numeric(as.character(data$Year))
 +
head(data)
 +
 +
S <- 20
 +
ggplot(data, aes(x = Time, y = priceResult, fill = Area)) +
 +
geom_line() +
 +
opts(
 +
axis.text.x = theme_text(size = S),
 +
axis.text.y = theme_text(size = S),
 +
axis.title.x = theme_text(size = S),
 +
axis.title.y = theme_text(size = S, angle = 90),
 +
title = "Monthly electricity prices in Nordic countries 2000-2012",
 +
plot.title = theme_text(size = S * 1.5)
 +
) +
 +
scale_x_continuous("Time") +
 +
scale_y_continuous("Price (EUR /MWh)")
 +
</rcode>
 +
 +
{{comment|# |Code seems to work, but gives the yellow messagebox.|--[[User:Heta|Heta]] 12:37, 27 August 2013 (EEST)}}
  
 
==See also==
 
==See also==
Line 26: Line 55:
 
==Related files==
 
==Related files==
  
{{mfiles}}
+
{{mfiles}}<!-- __OBI_TS:1347203670 -->

Latest revision as of 09:37, 27 August 2013



Question

What are prices of electricity in the Nordic countries?

Answer

Show results


Rationale

Data comes from Nord Pool [1].

Dependencies

Formula

+ Show code

--# : Code seems to work, but gives the yellow messagebox. --Heta 12:37, 27 August 2013 (EEST)

See also

Keywords

References


Related files

<mfanonymousfilelist></mfanonymousfilelist>