@@ -383,12 +383,12 @@ assign_grids <- function(ROW, COL, width, height, polar = FALSE) {
383
383
}
384
384
385
385
# Compute grid lines and text labels for frame_calendar()
386
- gen_reference <- function (grids , dir = " h" , ... ) {
386
+ gen_reference <- function (grids , margin , dir = " h" , week_start = 1 , ... ) {
387
387
dir <- match.arg(dir , c(" h" , " v" ))
388
388
UseMethod(" gen_reference" )
389
389
}
390
390
391
- gen_reference.daily <- function (grids , dir = " h" , ... ) {
391
+ gen_reference.daily <- function (grids , margin , dir = " h" , week_start = 1 , ... ) {
392
392
# day breaks
393
393
minor_breaks <- gen_day_breaks(grids )
394
394
min_width <- min_diff(minor_breaks $ x )
@@ -430,7 +430,7 @@ gen_reference.daily <- function(grids, dir = "h", ...) {
430
430
list (breaks = NULL , minor_breaks = minor_breaks , label = mtext , text = dtext )
431
431
}
432
432
433
- gen_reference.weekly <- function (grids , dir = " h" , ... ) {
433
+ gen_reference.weekly <- function (grids , margin , dir = " h" , week_start = 1 , ... ) {
434
434
# day breaks
435
435
minor_breaks <- gen_day_breaks(grids )
436
436
min_width <- min_diff(minor_breaks $ x )
0 commit comments