Skip to content

Commit

Permalink
remove annotation strip text by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Jul 17, 2024
1 parent c012eea commit 7e12483
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions R/anno-.R
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,7 @@ methods::setValidity("anno", function(object) {
}
TRUE
})

anno_default_theme <- function() {
ggplot2::theme(strip.text = ggplot2::element_blank())
}
3 changes: 2 additions & 1 deletion R/gganno-.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ gganno <- function(mapping = aes(), data = NULL,
data = data,
order = order,
size = size,
plot = ggplot2::ggplot(mapping = mapping),
plot = ggplot2::ggplot(mapping = mapping) +
anno_default_theme(),
name = name, position = position, set_context = set_context,
labels = labels, labels_nudge = labels_nudge,
call = call
Expand Down
3 changes: 2 additions & 1 deletion R/htanno-dendrogram.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ htanno_dendro <- function(mapping = aes(), ...,
params = list(
distance = distance, method = method, use_missing = use_missing,
k = k, h = h, plot_cut_height = plot_cut_height,
plot = ggplot2::ggplot(mapping = mapping),
plot = ggplot2::ggplot(mapping = mapping) +
anno_default_theme(),
segment_params = rlang::list2(...),
center = center, type = type, root = root,
# initialize height value
Expand Down

0 comments on commit 7e12483

Please sign in to comment.