Skip to content

Commit

Permalink
fix Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Nov 7, 2024
1 parent be3158d commit 84a0f89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
11 changes: 2 additions & 9 deletions R/layout-.R
Original file line number Diff line number Diff line change
Expand Up @@ -96,28 +96,21 @@ methods::setMethod("$", "Layout", function(x, name) {
#' ggalign() +
#' geom_point(aes(y = value))
#'
#' # `&` operator apply it to all plots
#' ggheatmap(mat) +
#' anno_top() +
#' align_dendro() &
#' theme(panel.border = element_rect(
#' colour = "red", fill = NA, linewidth = unit(2, "mm")
#' ))
#' # `-` operator only apply it to the active annotation
#' ggheatmap(mat) +
#' anno_top() +
#' align_dendro() -
#' theme(panel.border = element_rect(
#' colour = "red", fill = NA, linewidth = unit(2, "mm")
#' ))
#'
#' # used in the layout, define the default action for all plots in the layout
#' ggheatmap(matrix(rnorm(72), nrow = 8)) -
#' theme(plot.background = element_rect(fill = "red"))
#'
#' # You can also add it for a single plot
#' ggheatmap(matrix(rnorm(72), nrow = 8)) -
#' theme(plot.background = element_rect(fill = "red")) +
#' # here, we modify the plot action for the heatmap body
#' theme(plot.background = element_rect(fill = "blue"))
#' @name layout-operator
NULL

Expand Down
11 changes: 2 additions & 9 deletions man/layout-operator.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 84a0f89

Please sign in to comment.