Skip to content

Commit 1f8a03c

Browse files
committed
updates #2
1 parent ee53f04 commit 1f8a03c

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

codes.R

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ library(ggalt)
33
library(patchwork)
44
library(RColorBrewer)
55

6+
# full_df_mod <- full_df %>% filter(team == "main")
7+
68
# prepare plots -----------------------------------------------------------
79

810
my_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

5660
world_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")

subsite/team.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pw_plot
3636
```
3737

3838
### 🗺️ Countries visited
39-
```{r, echo=FALSE, message=FALSE, fig.width=12, fig.height=8}
39+
```{r, echo=FALSE, message=FALSE}
4040
inter_plot
4141
```
4242

subsite/team/kg.qmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ format:
1010
gutter-width: 1.5rem
1111
---
1212

13-
<!-- # 📝 **Bio** -->
13+
# 📝 **Bio**
1414

15-
<!-- ------------------------------------------------------------------------ -->
15+
------------------------------------------------------------------------
1616

17-
<!-- something -->
17+
something
1818

1919

2020
# 📱 **Contact** {#contact}

0 commit comments

Comments
 (0)