|
53 | 53 | #' in the following format: c(intersection size title, intersection size tick labels, set size title, set size tick labels, set names, numbers above bars) |
54 | 54 | #' @param set_size.angles Numeric, angle to rotate the set size plot x-axis text |
55 | 55 | #' @param set_size.show Logical, display the set sizes on the set size bar chart |
| 56 | +#' @param set_size.numbers_size If set_size.show is TRUE, adjust the size of the numbers |
| 57 | +#' @param set_size.scale_max Increase the maximum of set size scale |
56 | 58 | #' @details Visualization of set data in the layout described by Lex and Gehlenborg in \url{http://www.nature.com/nmeth/journal/v11/n8/abs/nmeth.3033.html}. |
57 | 59 | #' UpSet also allows for visualization of queries on intersections and elements, along with custom queries queries implemented using |
58 | 60 | #' Hadley Wickham's apply function. To further analyze the data contained in the intersections, the user may select additional attribute plots |
@@ -120,7 +122,7 @@ upset <- function(data, nsets = 5, nintersects = 40, sets = NULL, keep.order = F |
120 | 122 | decreasing = c(T, F), show.numbers = "yes", number.angles = 0, group.by = "degree",cutoff = NULL, |
121 | 123 | queries = NULL, query.legend = "none", shade.color = "gray88", shade.alpha = 0.25, matrix.dot.alpha =0.5, |
122 | 124 | empty.intersections = NULL, color.pal = 1, boxplot.summary = NULL, attribute.plots = NULL, scale.intersections = "identity", |
123 | | - scale.sets = "identity", text.scale = 1, set_size.angles = 0 , set_size.show = FALSE ){ |
| 125 | + scale.sets = "identity", text.scale = 1, set_size.angles = 0 , set_size.show = FALSE, set_size.numbers_size = NULL, set_size.scale_max = NULL){ |
124 | 126 |
|
125 | 127 | startend <-FindStartEnd(data) |
126 | 128 | first.col <- startend[1] |
@@ -257,8 +259,9 @@ upset <- function(data, nsets = 5, nintersects = 40, sets = NULL, keep.order = F |
257 | 259 | mainbar.y.max, scale.intersections, text.scale, attribute.plots)) |
258 | 260 | Matrix <- Make_matrix_plot(Matrix_layout, Set_sizes, All_Freqs, point.size, line.size, |
259 | 261 | text.scale, labels, ShadingData, shade.alpha) |
260 | | - Sizes <- Make_size_plot(Set_sizes, sets.bar.color, mb.ratio, sets.x.label, scale.sets, text.scale, set_size.angles,set_size.show) |
261 | | - |
| 262 | + Sizes <- Make_size_plot(Set_sizes, sets.bar.color, mb.ratio, sets.x.label, scale.sets, text.scale, set_size.angles,set_size.show, |
| 263 | + set_size.scale_max, set_size.numbers_size) |
| 264 | + |
262 | 265 | # Make_base_plot(Main_bar, Matrix, Sizes, labels, mb.ratio, att.x, att.y, New_data, |
263 | 266 | # expression, att.pos, first.col, att.color, AllQueryData, attribute.plots, |
264 | 267 | # legend, query.legend, BoxPlots, Set_names, set.metadata, set.metadata.plots) |
@@ -287,6 +290,7 @@ upset <- function(data, nsets = 5, nintersects = 40, sets = NULL, keep.order = F |
287 | 290 | set.metadata.plots = set.metadata.plots) |
288 | 291 | ) |
289 | 292 | } |
| 293 | + |
290 | 294 | #' @export |
291 | 295 | print.upset <- function(x, newpage = TRUE) { |
292 | 296 | Make_base_plot( |
|
0 commit comments