Skip to content

Commit

Permalink
removing delta dots from proportional and paired plots
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberosa committed Oct 30, 2024
1 parent 988c14d commit a3a463e
Show file tree
Hide file tree
Showing 6 changed files with 371 additions and 681 deletions.
6 changes: 3 additions & 3 deletions R/002_plot_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ plot_delta <- function(dabest_effectsize_obj, float_contrast, plot_kwargs) {

### Preparing delta dots data
delta_dots <- plot_kwargs$delta_dots
if (is_paired && delta_dots) {
show_delta_dots <- (is_paired && !(proportional) && delta_dots)
if (show_delta_dots) {
delta_dots_data <- create_delta_dots_data(dabest_effectsize_obj, x_axis_breaks)
delta_y_min <- min(delta_dots_data$y_var)
delta_y_max <- max(delta_dots_data$y_var)
Expand Down Expand Up @@ -635,8 +636,7 @@ plot_delta <- function(dabest_effectsize_obj, float_contrast, plot_kwargs) {
)
}
### Add delta dots if requested
delta_dots <- plot_kwargs$delta_dots
if (is_paired && delta_dots) {
if (show_delta_dots) {
delta_plot <- add_delta_dots_to_delta_plot(
delta_plot,
dabest_effectsize_obj,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
343 changes: 133 additions & 210 deletions tests/testthat/_snaps/001_plotter/proportion-baseline-mean-diff.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a3a463e

Please sign in to comment.