Skip to content

Commit d0274bf

Browse files
committed
fix error when breaks not exist
1 parent 4afcb80 commit d0274bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: R/layout-heatmap-oncoplot.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ ggoncoplot.default <- function(data = NULL, mapping = aes(), ...,
124124
value_list <- strsplit(data$value,
125125
split = "\\s*[;:,|]\\s*", perl = TRUE
126126
)
127-
lvls <- ggalign_attr(data, ".__ggalign_oncoplot_breaks__")
127+
lvls <- .subset2(ggalign_attr_get(data), ".__ggalign_oncoplot_breaks__")
128128
data <- vec_rep_each(data, list_sizes(value_list))
129129
value <- unlist(value_list, recursive = FALSE, use.names = FALSE)
130130
if (!is.null(lvls)) value <- factor(value, levels = lvls)

0 commit comments

Comments
 (0)