9  Mixing

Code
# Access custom defined functions
targets::tar_source("../R_functions")
Code
make_plotdata_racegender_mixing_matrix() |>
  plot_matrix_mixing() +
  scale_fill_mpxnyc_gradient() +
  scale_color_mpxnyc_gradient() +
  theme_mpxnyc_mixing()
Figure 9.1: Spatial mixing matrix by race and gender.

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. 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. Non-binary people also showed spatial proximity to transgender men, suggesting overlapping community spaces.

Code
make_plotdata_sexorientation_mixing_matrix() |>
  plot_matrix_mixing() +
  scale_fill_mpxnyc_gradient() +
  scale_color_mpxnyc_gradient() +
  theme_mpxnyc_mixing(
    plot.margin = ggplot2::unit(10*c(10,10,10,10), "pt")
    ) 
Figure 9.2: Spatial mixing matrix by sexual orientation

When stratified by sexual orientation, gay-identified participants clustered in neighborhoods where bisexual, straight, and queer-identified participants were less present—and those groups, in turn, were 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
make_plotdata_age_mixing_matrix() |>
  plot_matrix_mixing() +
  scale_fill_mpxnyc_gradient() +
  scale_color_mpxnyc_gradient() +
  theme_mpxnyc_mixing(
    plot.margin = ggplot2::unit(10*c(10,10,10,10), "pt")
    ) 
Figure 9.3: Spatial mixing matrix by age
Code
plot_icon(icon_name = "bear", color = "light_brown", shape = 8)