Skip to content

Commit 1306a6b

Browse files
v1.1
1 parent 505a445 commit 1306a6b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

R/calendR.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#' @param lunar.size If `lunar = TRUE`, is the size of the representation of the moons.
4747
#' @param pdf Boolean. If `TRUE`, saves the calendar in the working directory in A4 format.
4848
#' @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.
5050
#'
5151
#' @author
5252
#' \itemize{
@@ -522,7 +522,7 @@ calendR <- function(year = format(Sys.Date(), "%Y"),
522522
plot.title = element_text(hjust = 0.5, size = title.size, colour = title.col),
523523
plot.subtitle = element_text(hjust = 0.5, face = "italic", colour = subtitle.col, size = subtitle.size),
524524
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"),
526526
text = element_text(family = font.family, face = font.style),
527527
strip.placement = "outsite")
528528

man/calendR.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)