Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Aug 3, 2024
1 parent c9d79ee commit 100a0a8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions R/plot.check_dag.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ plot.see_check_dag <- function(x,
ggplot2::scale_fill_manual(values = point_colors) +
ggplot2::ggtitle("Current model") +
ggplot2::guides(edge_alpha = "none") +
ggdag::expand_plot()
ggdag::expand_plot(
expand_x = ggplot2::expansion(c(0.05, 0.05)),
expand_y = ggplot2::expansion(c(0.05, 0.05))
)

plot2 <- ggplot2::ggplot(p2$data, ggplot2::aes(x = .data$x, y = .data$y)) +
geom_point_borderless(ggplot2::aes(fill = .data$type), size = size_point) +
Expand All @@ -119,7 +122,10 @@ plot.see_check_dag <- function(x,
ggplot2::scale_fill_manual(values = point_colors) +
ggplot2::ggtitle("Required model") +
ggplot2::guides(edge_alpha = "none") +
ggdag::expand_plot()
ggdag::expand_plot(
expand_x = ggplot2::expansion(c(0.05, 0.05)),
expand_y = ggplot2::expansion(c(0.05, 0.05))
)

if (which == "all") {
# fix legends
Expand Down

0 comments on commit 100a0a8

Please sign in to comment.