Skip to content

Instantly share code, notes, and snippets.

@berkorbay
Created January 19, 2020 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berkorbay/ff7e4e4cdceaff30d3292febd3f56fda to your computer and use it in GitHub Desktop.
Save berkorbay/ff7e4e4cdceaff30d3292febd3f56fda to your computer and use it in GitHub Desktop.
İBB Açık Veri Portalı İkitelli Güneş Enerjisi Santrali üretim verisi inceleme kodu
library(tidyverse)
library(lubridate)
library(jsonlite)
library(devtools)
#https://data.ibb.gov.tr/dataset/ikitelli-gunes-enerjisi-santrali-elektrik-uretim-miktarlari/resource/52afa9a3-2ea1-420b-a783-505cfe635ece
devtools::source_gist("https://gist.github.com/berkorbay/493e82b3d48245317c57a5d0c334492e")
raw_df <- ibb_data_pull("52afa9a3-2ea1-420b-a783-505cfe635ece")
wip_df <- raw_df %>% transmute(dt = as_datetime(Tarih),production=as.numeric(Uretim__kWh_))
the_plot <- wip_df %>% mutate(HM = format(dt,format="%H%M")) %>% ggplot(.,aes(x=HM,y=production)) + geom_boxplot() + theme_minimal() + theme(axis.text.x=element_text(angle=90))
the_plot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment