Commit 0cf3f7b7 authored by houyun's avatar houyun
Browse files

Hmm,fixed not overide defualt layers when register

parent 63fcac47
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -271,6 +271,7 @@ register_pairs_plot <- function(...,
    return(invisible(NULL))
  }
  gl <- options("linkET.pairs.plot")$linkET.pairs.plot
  layers <- utils::modifyList(gl, utils::modifyList(layers, list(...)))

  if (!is.list(scale)) {
    scale <- as.list(scale)
@@ -283,7 +284,6 @@ register_pairs_plot <- function(...,

    if (length(scale) > 1) {
      gs <- gl$scale %||% list()
      layers <- utils::modifyList(gl, utils::modifyList(layers, list(...)))
      scales <- utils::modifyList(gs, scale)
      layers$scale <- scales
    }