Difference between revisions of "Electricity prices in Nordic countries"
From Testiwiki
(Data uploaded using Opasnet Base Import) |
m |
||
(One intermediate revision 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== |
Latest revision as of 09:37, 27 August 2013
This page is a variable.
The page identifier is Op_en5804 |
---|
Moderator:Jouni (see all) |
This page is a stub. You may improve it into a full page, and then a rating bar will appear here. |
Upload data
|
Contents
Question
What are prices of electricity in the Nordic countries?
Answer
Rationale
Data comes from Nord Pool [1].
Dependencies
Formula
--# : Code seems to work, but gives the yellow messagebox. --Heta 12:37, 27 August 2013 (EEST)
See also
Keywords
References
Related files
<mfanonymousfilelist></mfanonymousfilelist>