Skip to content

Commit

Permalink
set intersection size axis min to 0 for log scales
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeConway committed Dec 1, 2016
1 parent 529e546 commit d8c972d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion R/MainBar.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ Make_main_bar <- function(Main_bar_data, Q, show_num, ratios, customQ, number_an
}

Main_bar_plot <- (ggplot(data = Main_bar_data, aes_string(x = "x", y = "freq"))
+ scale_y_continuous(trans = scale_intersections, limits = c(NA, ymax))
+ scale_y_continuous(trans = scale_intersections)
+ ylim(0, ymax)
+ geom_bar(stat = "identity", width = 0.6,
fill = Main_bar_data$color)
+ scale_x_continuous(limits = c(0,(nrow(Main_bar_data)+1 )), expand = c(0,0),
Expand Down
4 changes: 2 additions & 2 deletions R/upset.R
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ upset <- function(data, nsets = 5, nintersects = 40, sets = NULL, keep.order = F
if(is.null(ShadingData) == TRUE){
ShadingData <- MakeShading(Matrix_layout, shade.color)
}
Main_bar <- Make_main_bar(All_Freqs, Bar_Q, show.numbers, mb.ratio, customQBar, number.angles, EBar_data, mainbar.y.label,
mainbar.y.max, scale.intersections, text.scale, attribute.plots)
Main_bar <- suppressMessages(Make_main_bar(All_Freqs, Bar_Q, show.numbers, mb.ratio, customQBar, number.angles, EBar_data, mainbar.y.label,
mainbar.y.max, scale.intersections, text.scale, attribute.plots))
Matrix <- Make_matrix_plot(Matrix_layout, Set_sizes, All_Freqs, point.size, line.size,
text.scale, labels, ShadingData, shade.alpha)
Sizes <- Make_size_plot(Set_sizes, sets.bar.color, mb.ratio, sets.x.label, scale.sets, text.scale, set_size.angles)
Expand Down

0 comments on commit d8c972d

Please sign in to comment.