Skip to content

Commit

Permalink
Merge pull request #116 from rOpenSpain/flowmaps-legend
Browse files Browse the repository at this point in the history
update static flowmaps vignette with new flowmapper colored legend
  • Loading branch information
e-kotov authored Dec 16, 2024
2 parents 18cfcb7 + ff45df9 commit edce710
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 22 deletions.
Binary file modified man/figures/flowmapblue-animated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/flowmapblue-standard-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/flowmapblue-standard-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/flowmapblue-standard-time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/flows_plot_all_districts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/flows_plot_barcelona.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/logo-before-hex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/zones_barcelona_fua_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 11 additions & 22 deletions vignettes/flowmaps-static.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,9 @@ base_plot_districts <- ggplot() +
panel.background = element_rect(fill='transparent'),
plot.background = element_rect(fill='transparent', color=NA),
panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
legend.background = element_rect(fill='transparent', colour = NA),
legend.box.background = element_rect(fill='transparent', colour = NA),
legend.key = element_blank(), # Remove legend key border
legend.title = element_text(size = 12), # Adjust title size
legend.text = element_text(size = 10), # Adjust text size
legend.key.height = unit(1, "cm"), # Increase the height of legend keys
legend.margin = margin(t = 0, r = 0, b = 0, l = 0, unit = "cm") # Remove margin
)
panel.grid.minor = element_blank()
) +
guides(fill = "none")
# flows_by_ca_twoway_coords |> arrange(desc(flow_ab))
# add the flows
Expand All @@ -208,6 +202,7 @@ flows_plot_all_districts <- base_plot_districts |>
outline_col = "grey80",
add_legend = "bottom",
legend_col = "gray20",
legend_gradient = TRUE,
k_node = 20 # play around with this parameter to aggregate nodes and flows
)
Expand Down Expand Up @@ -314,15 +309,9 @@ base_plot_barcelona <- ggplot() +
panel.background = element_rect(fill='transparent'),
plot.background = element_rect(fill='transparent', color=NA),
panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
legend.background = element_rect(fill='transparent', colour = NA),
legend.box.background = element_rect(fill='transparent', colour = NA),
legend.key = element_blank(), # Remove legend key border
legend.title = element_text(size = 12), # Adjust title size
legend.text = element_text(size = 10), # Adjust text size
legend.key.height = unit(1, "cm"), # Increase the height of legend keys
legend.margin = margin(t = 0, r = 0, b = 0, l = 0, unit = "cm") # Remove margin
)
panel.grid.minor = element_blank()
) +
guides(fill = 'none')
# flows_by_ca_twoway_coords |> arrange(desc(flow_ab))
# add the flows
Expand All @@ -337,6 +326,7 @@ flows_plot_barcelona <- base_plot_barcelona |>
outline_col = "grey80",
add_legend = "bottom",
legend_col = "gray20",
legend_gradient = TRUE,
k_node = 30 # play around with this parameter to aggregate nodes and flows
)
Expand Down Expand Up @@ -611,10 +601,9 @@ base_plot <- ggplot() +
panel.background = element_rect(fill='transparent'),
plot.background = element_rect(fill='transparent', color=NA),
panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
legend.background = element_rect(fill='transparent'),
legend.box.background = element_rect(fill='transparent')
)
panel.grid.minor = element_blank()
) +
guides(fill = 'none')
# flows_by_ca_twoway_coords |> arrange(desc(flow_ab))
# add the flows
Expand Down

0 comments on commit edce710

Please sign in to comment.