Skip to content

Commit

Permalink
🧪 play around with map...
Browse files Browse the repository at this point in the history
  • Loading branch information
TanyaS08 committed Jan 8, 2025
1 parent 4f2a076 commit 907d2e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _freeze/people/execute-results/html.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"hash": "1c894e85188d205f111d50c7d14667e3",
"hash": "b367cd79377e379a335e1d8a4c3c0150",
"result": {
"engine": "knitr",
"markdown": "---\ntitle: \"Meet the Team\"\n#description: |\n# Stuff (if we want)\nlisting:\n - id: current_members\n template: assets/ejs/people_current.ejs\n contents: people/people_current.yml\n sort: name\n - id: past_members\n template: assets/ejs/people_past.ejs\n contents: people/people_past.yml\n sort: name\ntoc-location: right\n---\n\n\n\n\n## <i class=\"fa-regular fa-id-card\"></i> Current members\n\nThe people are what makes BioForge great! Here are the wonderful group members.\n\n::: {#current_members}\n:::\n\n## <i class=\"fa-solid fa-clock-rotate-left\"></i> Past members\n\nMany wonderful people have called BioForge home and have since gone on to do some amazing things. (While others never leave!)\n\n::: {#past_members}\n:::\n\n## <i class=\"fa-solid fa-user-plus\"></i> Collaborators\n\nWe work with some incredible researchers spanning several continents. These collaborations keep our science great and make the process all the more fun and rewarding.\n\n\n\n\n::: {.cell}\n::: {.cell-output-display}\n\n```{=html}\n<div class=\"plotly html-widget html-fill-item\" id=\"htmlwidget-f0c990ede7265e191eaa\" style=\"width:100%;height:464px;\"></div>\n<script type=\"application/json\" data-for=\"htmlwidget-f0c990ede7265e191eaa\">{\"x\":{\"visdat\":{\"8138362ef635\":[\"function () \",\"plotlyVisDat\"],\"813845262d5d\":[\"function () \",\"data\"],\"81384d6c5822\":[\"function () \",\"data\"]},\"cur_data\":\"81384d6c5822\",\"attrs\":{\"813845262d5d\":{\"color\":[\"red\"],\"alpha_stroke\":1,\"sizes\":[10,100],\"spans\":[1,20],\"x\":-1.48,\"y\":53.390000000000001,\"xend\":{},\"yend\":{},\"type\":\"scatter\",\"mode\":\"lines\",\"alpha\":0.29999999999999999,\"hoverinfo\":\"none\",\"inherit\":true},\"81384d6c5822\":{\"color\":[\"red\"],\"alpha_stroke\":1,\"sizes\":[10,100],\"spans\":[1,20],\"x\":{},\"y\":{},\"type\":\"scatter\",\"mode\":\"markers\",\"text\":{},\"hoverinfo\":\"text\",\"alpha\":0.5,\"inherit\":true}},\"layout\":{\"margin\":{\"b\":40,\"l\":60,\"t\":25,\"r\":10},\"mapType\":\"geo\",\"geo\":{\"domain\":{\"x\":[0,1],\"y\":[0,1]},\"scope\":\"world\",\"projection\":{\"type\":\"equirectangular\"},\"showland\":true,\"landcolor\":\"rgba(242,242,242,1)\",\"countrycolor\":\"rgba(204,204,204,1)\"},\"showlegend\":false,\"hovermode\":\"closest\"},\"source\":\"A\",\"config\":{\"modeBarButtonsToAdd\":[\"hoverclosest\",\"hovercompare\"],\"showSendToCloud\":false},\"data\":[{\"type\":\"scattergeo\",\"mode\":\"lines\",\"hoverinfo\":[\"none\",\"none\",null,\"none\",\"none\",null,\"none\",\"none\",null,\"none\",\"none\"],\"marker\":{\"color\":\"rgba(255,0,0,0.3)\",\"line\":{\"color\":\"rgba(255,0,0,1)\"}},\"textfont\":{\"color\":\"rgba(255,0,0,0.3)\"},\"line\":{\"color\":\"rgba(255,0,0,0.3)\"},\"geo\":\"geo\",\"lat\":[53.390000000000001,53.810000000000002,null,53.390000000000001,43.609999999999999,null,53.390000000000001,45.520000000000003,null,53.390000000000001,47.380000000000003],\"lon\":[-1.48,-1.55,null,-1.48,3.8700000000000001,null,-1.48,-73.569999999999993,null,-1.48,8.5399999999999991],\"frame\":null},{\"type\":\"scattergeo\",\"mode\":\"markers\",\"text\":[\"Leeds\",\"Montpellier\",\"Montreal\",\"Zurich\"],\"hoverinfo\":[\"text\",\"text\",\"text\",\"text\"],\"marker\":{\"color\":\"rgba(255,0,0,0.5)\",\"line\":{\"color\":\"rgba(255,0,0,1)\"}},\"textfont\":{\"color\":\"rgba(255,0,0,0.5)\"},\"line\":{\"color\":\"rgba(255,0,0,0.5)\"},\"geo\":\"geo\",\"lat\":[53.810000000000002,43.609999999999999,45.520000000000003,47.380000000000003],\"lon\":[-1.55,3.8700000000000001,-73.569999999999993,8.5399999999999991],\"frame\":null}],\"highlight\":{\"on\":\"plotly_click\",\"persistent\":false,\"dynamic\":false,\"selectize\":false,\"opacityDim\":0.20000000000000001,\"selected\":{\"opacity\":1},\"debounce\":0},\"shinyEvents\":[\"plotly_hover\",\"plotly_click\",\"plotly_selected\",\"plotly_relayout\",\"plotly_brushed\",\"plotly_brushing\",\"plotly_clickannotation\",\"plotly_doubleclick\",\"plotly_deselect\",\"plotly_afterplot\",\"plotly_sunburstclick\"],\"base_url\":\"https://plot.ly\"},\"evals\":[],\"jsHooks\":[]}</script>\n```\n\n:::\n:::",
"markdown": "---\ntitle: \"Meet the Team\"\n#description: |\n# Stuff (if we want)\nlisting:\n - id: current_members\n template: assets/ejs/people_current.ejs\n contents: people/people_current.yml\n sort: name\n - id: past_members\n template: assets/ejs/people_past.ejs\n contents: people/people_past.yml\n sort: name\ntoc-location: right\n---\n\n\n\n\n## <i class=\"fa-regular fa-id-card\"></i> Current members\n\nThe people are what makes BioForge great! Here are the wonderful group members.\n\n::: {#current_members}\n:::\n\n## <i class=\"fa-solid fa-clock-rotate-left\"></i> Past members\n\nMany wonderful people have called BioForge home and have since gone on to do some amazing things. (While others never leave!)\n\n::: {#past_members}\n:::\n\n## <i class=\"fa-solid fa-user-plus\"></i> Collaborators\n\nWe work with some incredible researchers spanning several continents. These collaborations keep our science great and make the process all the more fun and rewarding.\n\n\n\n\n::: {.cell}\n::: {.cell-output-display}\n\n```{=html}\n<div class=\"plotly html-widget html-fill-item\" id=\"htmlwidget-58d254ba93791a776922\" style=\"width:100%;height:464px;\"></div>\n<script type=\"application/json\" data-for=\"htmlwidget-58d254ba93791a776922\">{\"x\":{\"visdat\":{\"16fb6562c4e94\":[\"function () \",\"plotlyVisDat\"],\"16fb676db02be\":[\"function () \",\"data\"],\"16fb6249144e8\":[\"function () \",\"data\"]},\"cur_data\":\"16fb6249144e8\",\"attrs\":{\"16fb676db02be\":{\"color\":[\"red\"],\"alpha_stroke\":1,\"sizes\":[10,100],\"spans\":[1,20],\"x\":-1.48,\"y\":53.390000000000001,\"xend\":{},\"yend\":{},\"type\":\"scatter\",\"mode\":\"lines\",\"alpha\":0.29999999999999999,\"hoverinfo\":\"none\",\"inherit\":true},\"16fb6249144e8\":{\"color\":[\"red\"],\"alpha_stroke\":1,\"sizes\":[10,100],\"spans\":[1,20],\"x\":{},\"y\":{},\"type\":\"scatter\",\"mode\":\"markers\",\"text\":{},\"hoverinfo\":\"text\",\"alpha\":0.5,\"inherit\":true}},\"layout\":{\"margin\":{\"b\":40,\"l\":60,\"t\":25,\"r\":10},\"mapType\":\"geo\",\"geo\":{\"domain\":{\"x\":[0,1],\"y\":[0,1]},\"scope\":\"world\",\"projection\":{\"type\":\"equirectangular\"},\"showland\":true,\"landcolor\":\"rgba(242,242,242,1)\",\"countrycolor\":\"rgba(204,204,204,1)\"},\"showlegend\":false,\"hovermode\":\"closest\"},\"source\":\"A\",\"config\":{\"modeBarButtonsToAdd\":[\"hoverclosest\",\"hovercompare\"],\"showSendToCloud\":false},\"data\":[{\"type\":\"scattergeo\",\"mode\":\"lines\",\"hoverinfo\":[\"none\",\"none\",null,\"none\",\"none\",null,\"none\",\"none\",null,\"none\",\"none\",null,\"none\",\"none\"],\"marker\":{\"color\":\"rgba(255,0,0,0.3)\",\"line\":{\"color\":\"rgba(255,0,0,1)\"}},\"textfont\":{\"color\":\"rgba(255,0,0,0.3)\"},\"line\":{\"color\":\"rgba(255,0,0,0.3)\"},\"geo\":\"geo\",\"lat\":[53.390000000000001,53.810000000000002,null,53.390000000000001,43.609999999999999,null,53.390000000000001,45.520000000000003,null,53.390000000000001,35.68,null,53.390000000000001,47.380000000000003],\"lon\":[-1.48,-1.55,null,-1.48,3.8700000000000001,null,-1.48,-73.569999999999993,null,-1.48,-105.95,null,-1.48,8.5399999999999991],\"frame\":null},{\"type\":\"scattergeo\",\"mode\":\"markers\",\"text\":[\"Leeds\",\"Montpellier\",\"Montreal\",\"Santa Fe\",\"Zurich\"],\"hoverinfo\":[\"text\",\"text\",\"text\",\"text\",\"text\"],\"marker\":{\"color\":\"rgba(255,0,0,0.5)\",\"line\":{\"color\":\"rgba(255,0,0,1)\"}},\"textfont\":{\"color\":\"rgba(255,0,0,0.5)\"},\"line\":{\"color\":\"rgba(255,0,0,0.5)\"},\"geo\":\"geo\",\"lat\":[53.810000000000002,43.609999999999999,45.520000000000003,35.68,47.380000000000003],\"lon\":[-1.55,3.8700000000000001,-73.569999999999993,-105.95,8.5399999999999991],\"frame\":null}],\"highlight\":{\"on\":\"plotly_click\",\"persistent\":false,\"dynamic\":false,\"selectize\":false,\"opacityDim\":0.20000000000000001,\"selected\":{\"opacity\":1},\"debounce\":0},\"shinyEvents\":[\"plotly_hover\",\"plotly_click\",\"plotly_selected\",\"plotly_relayout\",\"plotly_brushed\",\"plotly_brushing\",\"plotly_clickannotation\",\"plotly_doubleclick\",\"plotly_deselect\",\"plotly_afterplot\",\"plotly_sunburstclick\"],\"base_url\":\"https://plot.ly\"},\"evals\":[],\"jsHooks\":[]}</script>\n```\n\n:::\n:::",
"supporting": [
"people_files"
],
Expand Down
3 changes: 2 additions & 1 deletion people.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ library(tidyverse)
library(maps)
base_map <- map_data("world")
collabs <- world.cities %>% filter(name %in% c("Montreal", "Leeds", "Zurich", "Montpellier"))
collabs <- world.cities %>% filter(name %in% c("Montreal", "Leeds", "Zurich", "Montpellier") |
name == "Santa Fe" & country.etc == "USA")
# flights between airports
Expand Down

0 comments on commit 907d2e4

Please sign in to comment.