@@ -3,6 +3,8 @@ library(ggalt)
33library(patchwork )
44library(RColorBrewer )
55
6+ # full_df_mod <- full_df %>% filter(team == "main")
7+
68# prepare plots -----------------------------------------------------------
79
810my_colors <- scale_fill_hue()$ palette(full_df_mod $ who %> % levels() %> % length())
@@ -51,20 +53,25 @@ gapminder_data <- gapminder %>%
5153
5254# # cities <- lon & lat
5355
54- full_df_longlat <- full_df_mod %> % geocode(city = city , country = country )
56+ full_df_longlat <- full_df_mod %> %
57+ # select(full_name, city, country, who, activity) %>%
58+ geocode(city = city , country = country )
5559
5660world_visit <- world %> %
5761 ggplot() +
5862 geom_polygon(aes(x = long , y = lat , group = group ),
59- fill = " springgreen2" ,
60- color = " deepskyblue1" ,
61- size = 0.01 ) +
62- geom_point(data = full_df_longlat , aes(x = long , y = lat , color = activity , text = paste0(activity , " <br>" , full_name , " <br>" , city , " , " , country , " <br>" , who )), alpha = 0.6 ) +
63+ fill = " burlywood1" ,
64+ color = " navy" ,
65+ size = 0.05 ) +
66+ geom_jitter(data = full_df_longlat ,
67+ aes(x = long , y = lat , color = activity , text = paste0(full_name , " <br>" , city , " , " , country , " <br>" , who )),
68+ # alpha = 0.6,
69+ size = 2 ) +
6370 labs(title = " BioGenies in the world" ) +
6471 theme_map() +
6572 scale_size_continuous(guide = F ) +
6673 scale_color_discrete(name = " Type" ) +
6774 theme(plot.title = element_text(size = 10 , hjust = 0.5 ))
6875
6976
70- inter_plot <- ggplotly(world_visit , tooltip = " text" )
77+ inter_plot <- ggplotly(world_visit , tooltip = " text" )
0 commit comments