Skip to content

Commit 895dd2f

Browse files
committed
add minor ticks settings
1 parent e1e432a commit 895dd2f

File tree

2 files changed

+47
-15
lines changed

2 files changed

+47
-15
lines changed

R/theme-sub.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,43 +54,43 @@ subtheme <- function(elements, prefix = "", suffix = "", call = caller_env()) {
5454

5555
#' @export
5656
#' @describeIn subtheme Theme specification for all axes.
57-
theme_sub_axis <- function(title, text, ticks, ticks.length, line) {
57+
theme_sub_axis <- function(title, text, ticks, ticks.length, line, minor.ticks.length) {
5858
subtheme(find_args(), "axis.")
5959
}
6060

6161
#' @export
6262
#' @describeIn subtheme Theme specification for both x axes.
63-
theme_sub_axis_x <- function(title, text, ticks, ticks.length, line) {
63+
theme_sub_axis_x <- function(title, text, ticks, ticks.length, line, minor.ticks.length) {
6464
subtheme(find_args(), "axis.", ".x")
6565
}
6666

6767
#' @export
6868
#' @describeIn subtheme Theme specification for both y axes.
69-
theme_sub_axis_y <- function(title, text, ticks, ticks.length, line) {
69+
theme_sub_axis_y <- function(title, text, ticks, ticks.length, line, minor.ticks.length) {
7070
subtheme(find_args(), "axis.", ".y")
7171
}
7272

7373
#' @export
7474
#' @describeIn subtheme Theme specification for the bottom x axis.
75-
theme_sub_axis_bottom <- function(title, text, ticks, ticks.length, line) {
75+
theme_sub_axis_bottom <- function(title, text, ticks, ticks.length, line, minor.ticks, minor.ticks.length) {
7676
subtheme(find_args(), "axis.", ".x.bottom")
7777
}
7878

7979
#' @export
8080
#' @describeIn subtheme Theme specification for the top x axis.
81-
theme_sub_axis_top <- function(title, text, ticks, ticks.length, line) {
81+
theme_sub_axis_top <- function(title, text, ticks, ticks.length, line, minor.ticks, minor.ticks.length) {
8282
subtheme(find_args(), "axis.", ".x.top")
8383
}
8484

8585
#' @export
8686
#' @describeIn subtheme Theme specification for the left y axis.
87-
theme_sub_axis_left <- function(title, text, ticks, ticks.length, line) {
87+
theme_sub_axis_left <- function(title, text, ticks, ticks.length, line, minor.ticks, minor.ticks.length) {
8888
subtheme(find_args(), "axis.", ".y.left")
8989
}
9090

9191
#' @export
9292
#' @describeIn subtheme Theme specification for the right y axis.
93-
theme_sub_axis_right <- function(title, text, ticks, ticks.length, line) {
93+
theme_sub_axis_right <- function(title, text, ticks, ticks.length, line, minor.ticks, minor.ticks.length) {
9494
subtheme(find_args(), "axis.", ".y.right")
9595
}
9696

man/subtheme.Rd

Lines changed: 40 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)