Skip to content

Commit

Permalink
add slot value to the argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Dec 31, 2024
1 parent f6a9cb1 commit 2a7cca6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion R/cross-.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# Since `ggalign_align_plot` object need act with the layout, we Use R6 object
# here
cross <- function(cross, data = waiver(), ..., call = caller_call()) {
cross <- function(cross, data = waiver(), ...,
plot = NULL, active = NULL, size = NULL,
schemes = NULL, call = caller_call()) {
if (override_call(call)) {
call <- current_call()
}
new_ggalign_plot(
align = cross,
input_data = allow_lambda(data),
...,
plot = plot, active = active, size = size, schemes = schemes,
call = call
)
}
Expand Down
5 changes: 3 additions & 2 deletions R/cross-none.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
cross_none <- function(data = waiver(), inherit_panel = NULL,
inherit_nobs = NULL) {
cross(CrossNone,
data = data, plot = NULL,
schemes = default_schemes(),
data = data,
plot = NULL,
active = new_active(use = FALSE),
schemes = default_schemes(),
inherit_panel = inherit_panel,
inherit_nobs = inherit_nobs
)
Expand Down

0 comments on commit 2a7cca6

Please sign in to comment.