Skip to content

Commit

Permalink
update grouped zone_summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Carvalho committed Jun 18, 2024
1 parent 91120a9 commit e2785ea
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions R/zone_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -378,14 +378,11 @@ zone_summary <- function(dat,
legend_name = legend_name))

suppressWarnings(plotly::ggplotly(tmp_z_plot) %>%
plotly::style(line.width = 1) %>%
plotly::style(line.width = 1, hoveron = "fills") %>%
plotly::config(scrollZoom = TRUE) %>%
plotly::plotly_build())
})

z_plot <- z_plot %>%
style(hoveron = "fills")

z_plot
} # END GROUP ZONE FUNCTION

Expand Down Expand Up @@ -437,6 +434,10 @@ zone_summary <- function(dat,
plotly::style(line.width = 1) %>%
plotly::config(scrollZoom = TRUE) %>%
plotly::plotly_build())

z_plot_c <- z_plot_c %>%
style(hoveron = "fills")

# save plot
save_plot(project, "zone_summary_confid", z_plot_c)
}
Expand Down

0 comments on commit e2785ea

Please sign in to comment.