Skip to content

Commit 8e3d80c

Browse files
authored
Merge branch 'main' into strengejacke/issue594
2 parents e5054db + dc08434 commit 8e3d80c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vignettes/plotting.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ plot(pr, show_residuals = TRUE)
205205

206206
Data points will also be colored by groups automatically.
207207

208-
```r
208+
```{r}
209209
m <- lm(neg_c_7 ~ e16sex * c172code, data = efc)
210210
emm <- estimate_means(m, c("e16sex", "c172code"))
211211
plot(
@@ -218,7 +218,7 @@ plot(
218218

219219
For mixed models, data points can be "collapsed" (i.e. averaged over) grouping variables from the random effects. First, we show an example that includes all data points.
220220

221-
```r
221+
```{r}
222222
library(lme4)
223223
224224
data(efc)
@@ -233,7 +233,7 @@ plot(me, show_data = TRUE)
233233

234234
Next, we specify the `collapse_group` argument, to tell the `plot()` function to "average" data points over the random effects groups, represented by the `e15relat` variable.
235235

236-
```r
236+
```{r}
237237
plot(me, show_data = TRUE, collapse_group = "e15relat")
238238
```
239239

0 commit comments

Comments
 (0)