Skip to content

Commit

Permalink
setting label to NULL will narrow gap between subplots
Browse files Browse the repository at this point in the history
  • Loading branch information
gaospecial committed Dec 21, 2023
1 parent 1b6b581 commit b891031
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/upset_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ upsetplot_main = function(data){
ggplot2::ggplot(data, aes(.data$id, .data$set)) +
ggplot2::geom_point(size = 4, color = "grey30", na.rm = FALSE) +
ggplot2::geom_path(aes(group = .data$id), size = 1.5, color = "grey30", na.rm = FALSE) +
ggplot2::labs(x = "Set Intersection", y = "") +
ggplot2::labs(x = "Set Intersection", y = NULL) +
theme_upset_main()
}

upsetplot_top = function(data){
ggplot2::ggplot(data, aes(.data$id, .data$size)) +
ggplot2::geom_col() +
ggplot2::labs(x = "", y = "Intersection Size") +
ggplot2::labs(x = NULL, y = "Intersection Size") +
theme_upset_top()
}

Expand All @@ -90,7 +90,7 @@ upsetplot_left = function(data){
ggplot2::geom_col(orientation = "y") +
ggplot2::scale_y_discrete(position = "right") +
ggplot2::scale_x_reverse() +
ggplot2::labs(x = "Set Size") +
ggplot2::labs(x = "Set Size", y = NULL) +
theme_upset_left()
}

Expand Down

0 comments on commit b891031

Please sign in to comment.