|
46 | 46 | #' @param lunar.size If `lunar = TRUE`, is the size of the representation of the moons. |
47 | 47 | #' @param pdf Boolean. If `TRUE`, saves the calendar in the working directory in A4 format. |
48 | 48 | #' @param doc_name If `pdf = TRUE`, is the name of the generated file (without the file extension). If not specified, creates files of the format: `Calendar_year.pdf` for yearly calendars and `Calendar_month_year.pdf` for monthly calendars. |
49 | | -#' @param papersize PDF paper size. Possible options are `"A6"`, `"A5"`, `"A4"` (default), `"A3"`, `"A2"`, `"A1"` and `"A0"`. |
| 49 | +#' @param papersize PDF paper size. Possible options are `"A6"`, `"A5"`, `"A4"` (default), `"A3"`, `"A2"`, `"A1"` and `"A0"`. Depending on the size you will need to fine-tune some arguments, like the font sizes. |
50 | 50 | #' |
51 | 51 | #' @author |
52 | 52 | #' \itemize{ |
@@ -522,7 +522,7 @@ calendR <- function(year = format(Sys.Date(), "%Y"), |
522 | 522 | plot.title = element_text(hjust = 0.5, size = title.size, colour = title.col), |
523 | 523 | plot.subtitle = element_text(hjust = 0.5, face = "italic", colour = subtitle.col, size = subtitle.size), |
524 | 524 | legend.position = legend.pos, |
525 | | - plot.margin = unit(c(1 * margin, 0, 1 * margin, 0), "cm"), |
| 525 | + plot.margin = unit(c(1 * margin, 0.5 * margin, 1 * margin, 0.5 * margin), "cm"), |
526 | 526 | text = element_text(family = font.family, face = font.style), |
527 | 527 | strip.placement = "outsite") |
528 | 528 |
|
|
0 commit comments