참조하여 이 .
g <- list(showframe = FALSE,
coastlinecolor = toRGB("white"),
showland = TRUE,
landcolor = toRGB("gray80"),
showcountries = TRUE,
countrycolor = toRGB("white"),
countrywidth = 0.2,
projection = list(type = 'Mercator'))
plot_geo(New_A_loc,
marker = list(color = toRGB("purple"),
opacity = 0.5,
line = list(color = toRGB("purple"),
width = 0.5))) %>%
add_markers(
data = New_A_loc, x = ~Long, y = ~Lat,
hoverinfo = "text",text = ~City, alpha = 0.5
) %>%
layout(geo = g)
데이터가 포함 된 전체 코드 . 내가 직면 한 문제는 마우스를 데이터 포인트 위로 이동할 때 나타나는 텍스트 상자를 볼 수 없다는 것입니다. 위의 블로거가 사용한 것과 같은 방식으로 사용했지만 결과를 얻을 수 없습니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다