9  Mixing

Code
# Access custom defined functions
targets::tar_source("R_functions")
Code
targets::tar_read(plotdata_racegender_mixing_matrix) |>
    dplyr::filter(ego_level != "Another demographic", alter_level != "Another demographic") |> 
  plot_matrix_mixing() +
  scale_fill_mpxnyc_gradient("Spatial\nmixing\ncoefficient", labels = scales::label_percent(), breaks = c(-2, 0,  2), limits = c(-2, 2)) +
  scale_color_mpxnyc_gradient() +
  ggplot2::scale_alpha_discrete(guide = "none") +
  theme_mpxnyc_mixing()
Figure 9.1: Spatial mixing matrix by race and gender. The spatial mixing ratio measures the extent to which members of one race and gender subgroup share community districts with members of another relative to chance. Values greater than 1 indicate more mixing than expected, whereas values between 0 and 1 indicate less mixing than expected.

Patterns of mixing reveal how social worlds overlapped—and where they stayed distinct—within queer and trans New York. Using spatial mixing coefficients, we measured the degree to which participants who shared certain characteristics (such as race, gender, sexual orientation, or age) tended to live or play in the same neighborhoods.

Across all categories, participants showed spatial homophily—people were more likely to live or go out in community districts where others shared their demographic traits. Yet the pattern was not uniform.Latinx cisgender men, Black cisgender men and non-binary participants tended to visit or reside in different neighborhoods than white cisgender men, indicating parallel but distinct social geographies.

Code
targets::tar_read(plotdata_sexorientation_mixing_matrix) |>
  dplyr::filter(ego_level != "Something Else", alter_level != "Something Else") |> 
  plot_matrix_mixing() +
  scale_fill_mpxnyc_gradient("Spatial\nmixing\ncoefficient", labels = scales::label_percent(), breaks = c(-0.5, 0, 0.5, 1), limits = c(-0.5,  1.2)) +
  scale_color_mpxnyc_gradient() +
  ggplot2::scale_alpha_discrete(guide = "none") +
  theme_mpxnyc_mixing() 
Figure 9.2: Spatial mixing matrix by sexual orientation. The spatial mixing ratio measures the extent to which members of one sexual orientation subgroup share community districts with members of another subgroup relative to chance. Values greater than 1 indicate more mixing than expected, whereas values between 0 and 1 indicate less mixing than expected.

When we examine sexual orientation, gay-identified participants clustered in neighborhoods where bisexual participants were less present—and this groups, in turn, was less present in gay-leaning clusters of neighborhoods. These mirrored preferences underscore how social identity, geography, and nightlife intertwine to shape opportunity for connection—and risk for infection.

Code
targets::tar_read(plotdata_age_mixing_matrix) |>
  plot_matrix_mixing() +
  scale_fill_mpxnyc_gradient("Spatial\nmixing\ncoefficient", labels = scales::label_percent(), breaks = c(-0.5, 0, 0.5, 1), limits = c(-0.5, 1)) +
  scale_color_mpxnyc_gradient() +
  ggplot2::scale_alpha_discrete(guide = "none") +
  theme_mpxnyc_mixing() 
Figure 9.3: Spatial mixing matrix by age. The spatial mixing ratio measures the extent to which members of one age subgroup share community districts with members of another relative to chance. Values greater than 1 indicate more mixing than expected, whereas values between 0 and 1 indicate less mixing than expected.

In terms of age, 25 to 44 year olds tended to be in different districts than those over 45. In addition, 18-24 year olds tended to be in different districts than those over 55.