rte-antares-rpackage / antaresViz

ANTARES Visualizations

Home Page:https://rte-antares-rpackage.github.io/antaresViz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

proStack and exchangeStack : regression ? no visualization for monthly data

jalazawa opened this issue · comments

I cannot visualize monthly data and it will be also a problem for this issue #143

Can we add some test in antaresViz ? and check the result of prodStack, excahngeStack ?

There is a function to get the data from a htmlWiget ? (avoidant question ? )

class(resM)
[1] "combineWidgets" "htmlwidget"  
studyPath<-"E:\\ANTARES\\Exemple_antares\\3_petit_exemple\\PackagesR\\Test_packages_R_602"
setSimulationPath(studyPath,-1)

myDataH<-readAntares(areas = "all", links = "all", timeStep = "hourly")

myDataM<-readAntares(areas = "all", links = "all", timeStep = "monthly")

myDataW<-readAntares(areas = "all", links = "all", timeStep = "weekly")


prodStack(
  myDataH, areas = "a", interactive = FALSE
)

prodStack(
  myDataW, areas = "a", interactive = FALSE
)

prodStack(
  myDataM, areas = "a", interactive = FALSE
)



exchangesStack(
  myDataH, areas = "a", interactive = FALSE
)

resW<-exchangesStack(
  myDataW, areas = "a", interactive = FALSE
)

resM<-exchangesStack(
  myDataM, areas = "a", interactive = FALSE
)

I think it's strange that the class of time change ...

> class(myDataH$areas$time)
[1] "POSIXct" "POSIXt" 
> class(myDataW$areas$time)
[1] "factor"
> class(myDataM$areas$time)
[1] "character"

Due to a little typo in new javascript date legend... so fix.