Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

143
Visualizações
Synchronous tooltips with ggiraph?

I built 6 interactive county choropleth maps using the same data and grouped them to be displayed together. Hovering over one zipcode area shows the same zipcode highlighted in all other maps. Is there a way to display the tooltips for that zipcode on the other maps when hovering over that location on one?

#Example of ggplot code to build maps
hispperc = round(demo.map.data$hispanic / demo.map.data$totalpop * 100, 0)
hisptooltip<- c(paste0(hispperc, "% <br>", demo.map.data$ZCTA5CE10))

demo.map.hisp <- ggplot(demo.map.data) +
  geom_sf_interactive(aes(fill = round(hispanic / totalpop * 100, 0), tooltip = hisptooltip, data_id = ZCTA5CE10), colour = "white") +
  geom_sf_interactive(data = county.simp, fill = NA, colour = "grey20", lwd = 1) +
  theme_void() +
  scale_fill_viridis_c(name = "Hispanic Population (%)", aesthetics = "fill", option = "D", direction = -1) +
  ggtitle(paste("Hispanic Population\n", params$county, ", ", params$state, sep = "")) +
  theme(plot.title = element_text(hjust = 0.5, size = 10),
        plot.subtitle = element_text(size = 10))

#grouping maps to be displayed
refmaps <- girafe(ggobj=plot_grid(demo.map.amindian, demo.map.asian, demo.map.black, demo.map.hawaiian,demo.map.hisp, demo.map.white),
width_svg = 13, 
height_svg = 5, 
options = list(opts_tooltip(offx = 20, offy = 20),
 opts_sizing(rescale = FALSE,width = 1.0), 
 opts_zoom(max = 5),  
 opts_hover( reactive = TRUE)))

Map-hoveranimation

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda