| |
| |
| |
|
|
| march1 = lm(degree_violence ~ identity_protesters, data=us_survey_wave1[us_survey_wave1$tactic==0,], weights=weight) |
| march1_maj = lm(degree_violence ~ identity_protesters, data=us_survey_wave1[us_survey_wave1$tactic==0 & us_survey_wave1$race == "White",], weights=weight) |
| march1_min = lm(degree_violence ~ identity_protesters, data=us_survey_wave1[us_survey_wave1$tactic==0 & us_survey_wave1$race == "Black",], weights=weight) |
|
|
| march2 = lm(police_action_required ~ identity_protesters, data=us_survey_wave1[us_survey_wave1$tactic==0,], weights=weight) |
| march2_maj = lm(police_action_required ~ identity_protesters, data=us_survey_wave1[us_survey_wave1$tactic==0 & us_survey_wave1$race == "White",], weights=weight) |
| march2_min = lm(police_action_required ~ identity_protesters, data=us_survey_wave1[us_survey_wave1$tactic==0 & us_survey_wave1$race == "Black",], weights=weight) |
|
|
| march1_isr = lm(degree_violence ~ identity_protesters, data=isr_survey_wave1[isr_survey_wave1$tactic==0,], weights=weight) |
| march1_isr_maj = lm(degree_violence ~ identity_protesters, data=isr_survey_wave1[isr_survey_wave1$tactic==0 & isr_survey_wave1$ethnicity %in% c("Ashkenazi", "Mizrachi", "Mixed", "Soviet Union"),], weights=weight) |
| march1_isr_min = lm(degree_violence ~ identity_protesters, data=isr_survey_wave1[isr_survey_wave1$tactic==0 & isr_survey_wave1$ethnicity == "Arab",], weights=weight) |
|
|
| march2_isr = lm(police_action_required ~ identity_protesters, data=isr_survey_wave1[isr_survey_wave1$tactic==0,], weights=weight) |
| march2_isr_maj = lm(police_action_required ~ identity_protesters, data=isr_survey_wave1[isr_survey_wave1$tactic==0 & isr_survey_wave1$ethnicity %in% c("Ashkenazi", "Mizrachi", "Mixed", "Soviet Union"),], weights=weight) |
| march2_isr_min = lm(police_action_required ~ identity_protesters, data=isr_survey_wave1[isr_survey_wave1$tactic==0 & isr_survey_wave1$ethnicity == "Arab",], weights=weight) |
|
|
| |
| perceptions_of_majority_us = c(ggpredict(march1_maj)$identity_protesters[,2], |
| ggpredict(march2_maj)$identity_protesters[,2]) |
|
|
| perceptions_of_minority_us = c(ggpredict(march1_min)$identity_protesters[,2], |
| ggpredict(march2_min)$identity_protesters[,2]) |
|
|
| perceptions_of_majority_isr = c(ggpredict(march1_isr_maj)$identity_protesters[c(1,3),2], |
| ggpredict(march2_isr_maj)$identity_protesters[c(1,3),2]) |
|
|
| perceptions_of_minority_isr = c(ggpredict(march1_isr_min)$identity_protesters[c(1,3),2], |
| ggpredict(march2_isr_min)$identity_protesters[c(1,3),2]) |
|
|
| |
|
|
| se_of_majority_us = c(ggpredict(march1_maj)$identity_protesters[,3], |
| ggpredict(march2_maj)$identity_protesters[,3]) |
|
|
| se_of_minority_us = c(ggpredict(march1_min)$identity_protesters[,3], |
| ggpredict(march2_min)$identity_protesters[,3]) |
|
|
| se_of_majority_isr = c(ggpredict(march1_isr_maj)$identity_protesters[c(1,3),3], |
| ggpredict(march2_isr_maj)$identity_protesters[c(1,3),3]) |
|
|
| se_of_minority_isr = c(ggpredict(march1_isr_min)$identity_protesters[c(1,3),3], |
| ggpredict(march2_isr_min)$identity_protesters[c(1,3),3]) |
|
|
|
|
| majority_us = data.frame("value" = perceptions_of_majority_us, |
| "se" = se_of_majority_us, |
| "Protesters" = rep(c("Majority", "Minority"),2), |
| "outcome" = c(rep("Perceived degree of violence", 2), |
| rep("Police action required", 2))) |
| majority_us$respondents = "White \nrespondents" |
| majority_us$survey = "U.S.A" |
|
|
| minority_us = data.frame("value" = perceptions_of_minority_us, |
| "se" = se_of_minority_us, |
| "Protesters" = rep(c("Majority", "Minority"),2), |
| "outcome" = c(rep("Perceived degree of violence", 2), |
| rep("Police action required", 2))) |
| minority_us$respondents = "Black \nrespondents" |
| minority_us$survey = "U.S.A" |
|
|
| majority_isr = data.frame("value" = perceptions_of_majority_isr, |
| "se" = se_of_majority_isr, |
| "Protesters" = rep(c("Majority", "Minority"),2), |
| "outcome" = c(rep("Perceived degree of violence", 2), |
| rep("Police action required", 2))) |
| majority_isr$respondents = "White Jewish \nrespondents" |
| majority_isr$survey = "Israel" |
|
|
| minority_isr = data.frame("value" = perceptions_of_minority_isr, |
| "se" = se_of_minority_isr, |
| "Protesters" = rep(c("Majority", "Minority"),2), |
| "outcome" = c(rep("Perceived degree of violence", 2), |
| rep("Police action required", 2))) |
| minority_isr$respondents = "Arab \nrespondents" |
| minority_isr$survey = "Israel" |
|
|
|
|
| df_all = rbind(majority_us, minority_us, majority_isr, minority_isr) |
| df_all = df_all[df_all$outcome != "Recall violence",] |
| df_all$respondents = factor(df_all$respondents, levels=c("White \nrespondents", "White Jewish \nrespondents", "Black \nrespondents", "Arab \nrespondents")) |
|
|
| ggplot(df_all, aes(x = respondents, y = value, group=Protesters)) + |
| geom_point(aes(color=Protesters, shape=Protesters), position = position_dodge(0.3))+ |
| geom_errorbar(aes(ymin=value-se, ymax=value+se, color=Protesters), width=0, |
| position=position_dodge(0.3))+ |
| facet_wrap(~outcome + survey, nrow=2, scales = "free") + theme_bw() + |
| scale_shape_discrete(name = "Protesters") + |
| theme(legend.position = "bottom") + xlab("") + ylab("") + |
| scale_color_manual(values=c("#E69F00", "#56B4E9")) |
| ggsave("Figures/fig_4.pdf", width=6, height=6) |