Skip to content

Instantly share code, notes, and snippets.

@agricolamz
Created February 28, 2024 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agricolamz/0406ca828ddf000208f0a213b75e4efa to your computer and use it in GitHub Desktop.
Save agricolamz/0406ca828ddf000208f0a213b75e4efa to your computer and use it in GitHub Desktop.
library(tidyverse)
library(ggiraph)
df <- read_csv("russian_journals_vectorized.csv")
df |>
mutate(for_tooltip = str_c(journal_title, "<br><br>",
author, " (",
year, ") ",
title, "<br><br>",
annotation)) |>
ggplot(aes(V1, V2, tooltip = for_tooltip))+
geom_point_interactive(size = 0.1) ->
plot1
girafe(ggobj = plot1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment