Skip to content

Commit

Permalink
fixing issue issue_330 (#334)
Browse files Browse the repository at this point in the history
fixing time plot x-axis
  • Loading branch information
jreps authored Sep 13, 2024
1 parent 2b72c6d commit 8e1f6c7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion R/helpers-sccsPlots.R
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,15 @@ plotSeasonSpline <- function(seasonSpline, rrLim = c(0.1, 10)) {

# unknown function?
convertMonthToStartDate <- function(x){
return(as.Date(x, origin = "1950-01-01"))
#return(as.Date(x, origin = "1950-01-01"))
year <- floor(x / 12)
month <- floor(x %% 12) + 1
return(as.Date(sprintf(
"%s-%s-%s",
year,
month,
1
)))
}
# adding missing sccsModel as input
plotCalendarTimeSpline <- function(calendarTimeSpline, rrLim = c(0.1, 10)) {
Expand Down

0 comments on commit 8e1f6c7

Please sign in to comment.