Skip to content

Commit

Permalink
Merge pull request #27 from ulysses-sr/main
Browse files Browse the repository at this point in the history
Update sankey.R
  • Loading branch information
davidsjoberg authored Feb 21, 2023
2 parents be08dd0 + 5f30081 commit 3e171a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/sankey.R
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ StatSankeyFlow <- ggplot2::ggproto("StatSankeyFlow", ggplot2::Stat,
flow_data <- data %>%
dplyr::mutate(group = 1) %>%
dplyr::group_by(n_x, node, n_next_x, next_node) %>%
summarise(flow_freq = dplyr::n(), .groups = "keep") %>%
dplyr::summarise(flow_freq = dplyr::n(), .groups = "keep") %>%
dplyr::ungroup()

data <- data %>%
Expand Down

0 comments on commit 3e171a8

Please sign in to comment.