@@ -54,49 +54,57 @@ subtheme <- function(elements, prefix = "", suffix = "", call = caller_env()) {
54
54
55
55
# ' @export
56
56
# ' @describeIn subtheme Theme specification for all axes.
57
- theme_sub_axis <- function (title , text , ticks , ticks.length , line , minor.ticks.length ) {
57
+ theme_sub_axis <- function (... , title , text , ticks , ticks.length , line , minor.ticks.length ) {
58
+ warn_dots_empty()
58
59
subtheme(find_args(), " axis." )
59
60
}
60
61
61
62
# ' @export
62
63
# ' @describeIn subtheme Theme specification for both x axes.
63
- theme_sub_axis_x <- function (title , text , ticks , ticks.length , line , minor.ticks.length ) {
64
+ theme_sub_axis_x <- function (... , title , text , ticks , ticks.length , line , minor.ticks.length ) {
65
+ warn_dots_empty()
64
66
subtheme(find_args(), " axis." , " .x" )
65
67
}
66
68
67
69
# ' @export
68
70
# ' @describeIn subtheme Theme specification for both y axes.
69
- theme_sub_axis_y <- function (title , text , ticks , ticks.length , line , minor.ticks.length ) {
71
+ theme_sub_axis_y <- function (... , title , text , ticks , ticks.length , line , minor.ticks.length ) {
72
+ warn_dots_empty()
70
73
subtheme(find_args(), " axis." , " .y" )
71
74
}
72
75
73
76
# ' @export
74
77
# ' @describeIn subtheme Theme specification for the bottom x axis.
75
- theme_sub_axis_bottom <- function (title , text , ticks , ticks.length , line , minor.ticks , minor.ticks.length ) {
78
+ theme_sub_axis_bottom <- function (... , title , text , ticks , ticks.length , line , minor.ticks , minor.ticks.length ) {
79
+ warn_dots_empty()
76
80
subtheme(find_args(), " axis." , " .x.bottom" )
77
81
}
78
82
79
83
# ' @export
80
84
# ' @describeIn subtheme Theme specification for the top x axis.
81
- theme_sub_axis_top <- function (title , text , ticks , ticks.length , line , minor.ticks , minor.ticks.length ) {
85
+ theme_sub_axis_top <- function (... , title , text , ticks , ticks.length , line , minor.ticks , minor.ticks.length ) {
86
+ warn_dots_empty()
82
87
subtheme(find_args(), " axis." , " .x.top" )
83
88
}
84
89
85
90
# ' @export
86
91
# ' @describeIn subtheme Theme specification for the left y axis.
87
- theme_sub_axis_left <- function (title , text , ticks , ticks.length , line , minor.ticks , minor.ticks.length ) {
92
+ theme_sub_axis_left <- function (... , title , text , ticks , ticks.length , line , minor.ticks , minor.ticks.length ) {
93
+ warn_dots_empty()
88
94
subtheme(find_args(), " axis." , " .y.left" )
89
95
}
90
96
91
97
# ' @export
92
98
# ' @describeIn subtheme Theme specification for the right y axis.
93
- theme_sub_axis_right <- function (title , text , ticks , ticks.length , line , minor.ticks , minor.ticks.length ) {
99
+ theme_sub_axis_right <- function (... , title , text , ticks , ticks.length , line , minor.ticks , minor.ticks.length ) {
100
+ warn_dots_empty()
94
101
subtheme(find_args(), " axis." , " .y.right" )
95
102
}
96
103
97
104
# ' @export
98
105
# ' @describeIn subtheme Theme specification for the legend.
99
106
theme_sub_legend <- function (
107
+ ... ,
100
108
# Text stuff
101
109
text , text.position , title , title.position ,
102
110
# Drawn elements
@@ -114,32 +122,36 @@ theme_sub_legend <- function(
114
122
# Box
115
123
box , box.just , box.margin , box.background , box.spacing
116
124
) {
125
+ warn_dots_empty()
117
126
subtheme(find_args(), " legend." )
118
127
}
119
128
120
129
# ' @export
121
130
# ' @describeIn subtheme Theme specification for the panels.
122
- theme_sub_panel <- function (background , border ,
131
+ theme_sub_panel <- function (... , background , border ,
123
132
widths , heights , spacing , spacing.x , spacing.y ,
124
133
grid , grid.major , grid.minor , grid.major.x ,
125
134
grid.major.y , grid.minor.x , grid.minor.y , ontop ) {
135
+ warn_dots_empty()
126
136
subtheme(find_args(), " panel." )
127
137
}
128
138
129
139
# ' @export
130
140
# ' @describeIn subtheme Theme specification for the whole plot.
131
- theme_sub_plot <- function (background , title , title.position , subtitle , caption ,
141
+ theme_sub_plot <- function (... , background , title , title.position , subtitle , caption ,
132
142
caption.position , tag , tag.position , tag.location ,
133
143
margin ) {
144
+ warn_dots_empty()
134
145
subtheme(find_args(), " plot." )
135
146
}
136
147
137
148
# ' @export
138
149
# ' @describeIn subtheme Theme specification for facet strips.
139
- theme_sub_strip <- function (background , background.x , background.y , clip ,
150
+ theme_sub_strip <- function (... , background , background.x , background.y , clip ,
140
151
placement , text , text.x , text.x.bottom , text.x.top ,
141
152
text.y , text.y.left , text.y.right ,
142
153
switch .pad.grid , switch .pad.wrap ) {
154
+ warn_dots_empty()
143
155
subtheme(find_args(), " strip." )
144
156
}
145
157
0 commit comments