#|label: Visualization-Growth-Mindset-vs-Fear-Based-Intervention
#|fig-cap: Figure 6. Scatter plot and linear regression of support for fear based police based interventions and level of growth mindset variables. Displays a bivariate relationship with third gender variable.
#| fig-alt: Higher levels of growth mindsets coinciding with lowered support for fear based police interventions. Significant differences exist between women and men as omen surveyed display a significant decrease in support for fear based intervention with increases in growth mindset and men show little to no significant change in support.
#| fig-width: 16
#| fig-height: 18
# Omit Non-binary
selectdata <- subset(selectdata, GENDER != 2)
#Growth Mindset vs Case Based Intervention with 3rd Gender Variable: change color dots
GROWTH_CARE_SCAT_FEAR <- ggplot(selectdata, aes(x = GROWTH, y = EFFECT_FEAR_POLICE, color = GENDER01))+
geom_smooth(method = "lm") +
geom_point(position = position_jitter(width=0.2)) +
scale_color_manual(
values = c("0" = "hotpink", "1" = "darkblue"),
labels = c("0" = "Woman", "1" = "Man")
) + scale_x_continuous(breaks = 0:6, limits = c(2,6.5)) + scale_y_continuous(breaks = 0:6, limits = c(0,6)) +
theme_bw() +
labs(
title = "Intervention Support vs Growth Mindset: Fear-Based",
x = "Degree of Growth Mindset",
y = "Support for FearBased Police Intervention",
color = "Gender"
)+ scale_x_continuous(breaks = 0:6, limits = c(2,6.5)) + scale_y_continuous(breaks = 0:6, limits = c(0,6)) +
theme_bw() +
scale_x_continuous(
name = "Agreement with Growth Mindset Statements ",
breaks = 2:6,
limits = c(2, 6),
labels = c(
"Strongly Disagree",
"Slightly Disagree",
"Slightly Agree",
"Agree",
"Strongly Agree"
)
) +
scale_y_continuous(
name = "Agreed Support for Policing Fear-Based \n Intervention",
breaks = 1:6,
limits = c(2, 6),
labels = c(
"Strongly Disagree",
"Disagree",
"Slightly Disagree",
"Slightly Agree",
"Agree",
"Strongly Agree"
)
) +
labs(
title = "Intervention Support vs Growth Mindset: Fear-Based",
x = "Degree of Growth Mindset",
y = "Support for Fear Policing Intervention",
color = "Gender"
) +
theme(
legend.position = c(0.1, 0.7),
plot.title = element_text(size = 25, face = "bold", hjust = 0.5, margin = margin(b = 15)),
legend.key.size = unit(0.4, "lines"),
legend.title = element_text(size = 18, face = "bold"),
legend.text = element_text(size = 12),
axis.title.x = element_text(size = 18, face = "bold", margin = margin(t = 12)),
axis.title.y = element_text(size = 18, face = "bold", margin = margin(r = 12)),
axis.text.x = element_text(size = 18, lineheight = 0.8, angle = 50, hjust = 1, vjust = 1),
axis.text.y = element_text(size = 18, hjust = 1)
)