Skip to content

Commit

Permalink
restore labels from layout data when provided data has no labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Dec 9, 2024
1 parent b18e367 commit a743efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/align-.R
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Align <- ggproto("Align", AlignProto,
object_name, NROW(data), layout_name, layout_nobs
))
}
self$labels <- vec_names(data)
self$labels <- vec_names(data) %||% vec_names(layout_data)
params <- self$setup_params(layout_nobs, input_params)
self$data <- ggalign_attr_restore(
self$setup_data(params, data),
Expand Down

0 comments on commit a743efd

Please sign in to comment.