@@ -31,14 +31,14 @@ plot.see_check_model <- function(x,
31
31
panel <- attr(x , " panel" )
32
32
check <- attr(x , " check" )
33
33
size_point <- attr(x , " dot_size" )
34
- size_line <- attr(x , " line_size" )
34
+ linewidth <- attr(x , " line_size" )
35
35
show_labels <- attr(x , " show_labels" ) %|| % TRUE
36
36
size_text <- attr(x , " text_size" )
37
37
base_size <- attr(x , " base_size" )
38
38
size_axis_title <- attr(x , " axis_title_size" )
39
39
size_title <- attr(x , " title_size" )
40
40
alpha_level <- attr(x , " alpha" )
41
- dot_alpha_level <- attr(x , " dot_alpha " )
41
+ alpha_dot <- attr(x , " alpha_dot " )
42
42
show_dots <- attr(x , " show_dots" )
43
43
detrend <- attr(x , " detrend" )
44
44
model_info <- attr(x , " model_info" )
@@ -73,8 +73,8 @@ plot.see_check_model <- function(x,
73
73
alpha_level <- 0.2
74
74
}
75
75
76
- if (is.null(dot_alpha_level )) {
77
- dot_alpha_level <- 0.8
76
+ if (is.null(alpha_dot )) {
77
+ alpha_dot <- 0.8
78
78
}
79
79
80
80
if (is.null(base_size )) {
@@ -101,7 +101,7 @@ plot.see_check_model <- function(x,
101
101
p $ PP_CHECK <- plot.see_performance_pp_check(
102
102
x $ PP_CHECK ,
103
103
style = style ,
104
- size_line = size_line ,
104
+ linewidth = linewidth ,
105
105
size_point = size_point ,
106
106
base_size = base_size ,
107
107
size_axis_title = size_axis_title ,
@@ -117,14 +117,14 @@ plot.see_check_model <- function(x,
117
117
p $ NCV <- .plot_diag_linearity(
118
118
x $ NCV ,
119
119
size_point = size_point ,
120
- size_line = size_line ,
120
+ linewidth = linewidth ,
121
121
alpha_level = alpha_level ,
122
122
theme_style = style ,
123
123
base_size = base_size ,
124
124
size_axis_title = size_axis_title ,
125
125
size_title = size_title ,
126
126
colors = colors ,
127
- dot_alpha_level = dot_alpha_level ,
127
+ alpha_dot = alpha_dot ,
128
128
show_dots = show_dots
129
129
)
130
130
}
@@ -152,7 +152,7 @@ plot.see_check_model <- function(x,
152
152
size_axis_title = size_axis_title ,
153
153
size_title = size_title ,
154
154
colors = colors [c(1 , 2 )],
155
- size_line = size_line ,
155
+ linewidth = linewidth ,
156
156
type = overdisp_type
157
157
)
158
158
}
@@ -161,14 +161,14 @@ plot.see_check_model <- function(x,
161
161
p $ HOMOGENEITY <- .plot_diag_homogeneity(
162
162
x $ HOMOGENEITY ,
163
163
size_point = size_point ,
164
- size_line = size_line ,
164
+ linewidth = linewidth ,
165
165
alpha_level = alpha_level ,
166
166
theme_style = style ,
167
167
base_size = base_size ,
168
168
size_axis_title = size_axis_title ,
169
169
size_title = size_title ,
170
170
colors = colors ,
171
- dot_alpha_level = dot_alpha_level ,
171
+ alpha_dot = alpha_dot ,
172
172
show_dots = show_dots
173
173
)
174
174
}
@@ -178,14 +178,14 @@ plot.see_check_model <- function(x,
178
178
x $ INFLUENTIAL ,
179
179
show_labels = show_labels ,
180
180
size_text = size_text ,
181
- size_line = size_line ,
181
+ linewidth = linewidth ,
182
182
size_point = size_point ,
183
183
theme_style = style ,
184
184
size_axis_title = size_axis_title ,
185
185
size_title = size_title ,
186
186
base_size = base_size ,
187
187
colors = colors ,
188
- dot_alpha_level = dot_alpha_level ,
188
+ alpha_dot = alpha_dot ,
189
189
show_dots = show_dots
190
190
)
191
191
}
@@ -194,7 +194,7 @@ plot.see_check_model <- function(x,
194
194
p $ VIF <- .plot_diag_vif(
195
195
x $ VIF ,
196
196
size_point = 1.5 * size_point ,
197
- size_line = size_line ,
197
+ linewidth = linewidth ,
198
198
theme_style = style ,
199
199
base_size = base_size ,
200
200
size_axis_title = size_axis_title ,
@@ -209,10 +209,10 @@ plot.see_check_model <- function(x,
209
209
if (inherits(x $ QQ , " performance_simres" )) {
210
210
p $ QQ <- plot(
211
211
x $ QQ ,
212
- size_line = size_line ,
212
+ linewidth = linewidth ,
213
213
size_point = 0.9 * size_point ,
214
214
alpha = alpha_level ,
215
- dot_alpha = dot_alpha_level ,
215
+ alpha_dot = alpha_dot ,
216
216
colors = colors ,
217
217
detrend = detrend ,
218
218
style = style ,
@@ -224,15 +224,15 @@ plot.see_check_model <- function(x,
224
224
p $ QQ <- .plot_diag_qq(
225
225
x $ QQ ,
226
226
size_point = size_point ,
227
- size_line = size_line ,
227
+ linewidth = linewidth ,
228
228
size_axis_title = size_axis_title ,
229
229
size_title = size_title ,
230
230
alpha_level = alpha_level ,
231
231
detrend = detrend ,
232
232
theme_style = style ,
233
233
base_size = base_size ,
234
234
colors = colors ,
235
- dot_alpha_level = dot_alpha_level ,
235
+ alpha_dot = alpha_dot ,
236
236
show_dots = TRUE , # qq-plots w/o dots makes no sense
237
237
model_info = model_info ,
238
238
model_class = model_class
@@ -243,7 +243,7 @@ plot.see_check_model <- function(x,
243
243
if (" NORM" %in% names(x ) && ! is.null(x $ NORM ) && any(c(" normality" , " all" ) %in% check )) {
244
244
p $ NORM <- .plot_diag_norm(
245
245
x $ NORM ,
246
- size_line = size_line ,
246
+ linewidth = linewidth ,
247
247
alpha_level = alpha_level ,
248
248
theme_style = style ,
249
249
base_size = base_size ,
@@ -257,14 +257,14 @@ plot.see_check_model <- function(x,
257
257
ps <- .plot_diag_reqq(
258
258
x $ REQQ ,
259
259
size_point ,
260
- size_line ,
260
+ linewidth ,
261
261
size_axis_title = size_axis_title ,
262
262
size_title = size_title ,
263
263
alpha_level = alpha_level ,
264
264
theme_style = style ,
265
265
base_size = base_size ,
266
266
colors = colors ,
267
- dot_alpha_level = dot_alpha_level ,
267
+ alpha_dot = alpha_dot ,
268
268
show_dots = TRUE # qq-plots w/o dots makes no sense
269
269
)
270
270
@@ -285,14 +285,14 @@ plot.see_check_model <- function(x,
285
285
286
286
.plot_diag_linearity <- function (x ,
287
287
size_point ,
288
- size_line ,
288
+ linewidth ,
289
289
size_axis_title = 10 ,
290
290
size_title = 12 ,
291
291
alpha_level = 0.2 ,
292
292
theme_style = theme_lucid ,
293
293
base_size = 10 ,
294
294
colors = unname(social_colors(c(" green" , " blue" , " red" ))),
295
- dot_alpha_level = 0.8 ,
295
+ alpha_dot = 0.8 ,
296
296
show_dots = TRUE ) {
297
297
p <- ggplot2 :: ggplot(x , ggplot2 :: aes(x = .data $ x , y = .data $ y ))
298
298
@@ -301,7 +301,7 @@ plot.see_check_model <- function(x,
301
301
geom_point2(
302
302
colour = colors [2 ],
303
303
size = size_point ,
304
- alpha = dot_alpha_level
304
+ alpha = alpha_dot
305
305
)
306
306
}
307
307
@@ -311,7 +311,7 @@ plot.see_check_model <- function(x,
311
311
se = TRUE ,
312
312
formula = y ~ x ,
313
313
alpha = alpha_level ,
314
- linewidth = size_line ,
314
+ linewidth = linewidth ,
315
315
colour = colors [1 ]
316
316
) +
317
317
ggplot2 :: geom_hline(yintercept = 0 , linetype = " dashed" ) +
0 commit comments