I am trying to plot a random intercept model that also contains the line of best fit. The model is supposed to show the relationship between team culture and helpful behaviors. Thus, all individuals are nested in teams.
When I try to plot my data, I can get my line of best fit to plot horizontally, but when I group by team, all of my random intercepts go vertical instead of horizontal (see below image). Do you have any recommendations on how to proceed? I want all the team lines to be similar to the line of best fit but with different intercepts.
Here's a sample dataset. I have also included the predicted values from my multilevel model.
mock_data <- tibble(team_num = c(1, 1, 1, 1, 1, 1, 1, 1, 110, 110, 110, 110, 112, 112, 113, 113, 113, 120, 120, 120),
pred_vig = c(2.4, 2.4, 2.4, 2.4, 2.4, 2.4, 2.4, 2.4, 2.61, 2.61, 2.61, 2.61, 2.91, 2.91, 2.42, 2.42, 2.42, 2.45, 2.45, 2.45),
exer_vig = c(4, 1, 2, 2, 3, 1, 2, 2, 2, 2, 3, 3, 3, 3, 1, 3, 3, 1, 2, 3),
cent_team_wm_agg = c(-0.0908, -0.0908, -0.0908, -0.0908, -0.0908, -0.0908, -0.0908, -0.0908, -0.00952, -0.00952, -0.00952, -0.00952, 0.328, 0.328, -.297, -.297, -.297, -.122, -.122, -.122))