Skip to content

Commit

Permalink
adjust point sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Mar 24, 2024
1 parent 1f50306 commit c3839c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: see
Title: Model Visualisation Toolbox for 'easystats' and 'ggplot2'
Version: 0.8.3
Version: 0.8.3.1
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down
2 changes: 1 addition & 1 deletion R/plot.check_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ plot.see_check_model <- function(x,
p$QQ <- plot(
x$QQ,
size_line = size_line,
size_point = size_point,
size_point = 0.9 * size_point,
alpha = alpha_level,
dot_alpha = dot_alpha_level,
colors = colors,
Expand Down
8 changes: 4 additions & 4 deletions R/plot.check_predictions.R
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ plot.see_performance_pp_check <- function(x,
color = .data$key
),
position = ggplot2::position_nudge(x = 0.2),
size = size_point,
size = 0.4 * size_point,
linewidth = size_line,
stroke = 0,
shape = 16
Expand All @@ -341,7 +341,7 @@ plot.see_performance_pp_check <- function(x,
y = .data$count,
color = .data$key
),
size = size_point,
size = 1.5 * size_point,
stroke = 0,
shape = 16
)
Expand All @@ -363,7 +363,7 @@ plot.see_performance_pp_check <- function(x,
),
alpha = line_alpha,
position = ggplot2::position_jitter(width = 0.1, height = 0.02),
size = size_point * 0.8,
size = 0.8 * size_point,
stroke = 0,
shape = 16
) +
Expand All @@ -376,7 +376,7 @@ plot.see_performance_pp_check <- function(x,
group = .data$grp,
color = .data$key
),
size = size_point * 0.8
size = 0.8 * size_point
) +
ggplot2::geom_point(
data = x[x$key == "Observed data", ],
Expand Down

2 comments on commit c3839c7

@strengejacke
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@IndrajeetPatil Could you tell me how to update tests with vdiffr? Then I could do this myself. I tried to adjust point sizes again, they vary a lot between different plots (or geoms?), although the same size is used for point-geoms. :-/ Goal should be to have very similar dot and line sizes in check_model() for all panels, and good looking standalone plots. Seems to be almost impossible to achieve ;-)

@IndrajeetPatil
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have a look at this: https://indrajeetpatil.github.io/intro-to-snapshot-testing/#/testing-graphical-outputs

Let me know if it doesn't help you.

Please sign in to comment.