Skip to content

Commit 9839113

Browse files
committed
remove ggplotly plots
1 parent 8006601 commit 9839113

File tree

1 file changed

+27
-20
lines changed

1 file changed

+27
-20
lines changed

R/zone_summary.R

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,18 @@ zone_summary <- function(dat,
373373

374374
break_list <- z_brk_fun(dat, breaks, n.breaks, bin_colors, count = count)
375375

376-
tmp_z_plot <- suppressWarnings(z_plot_fun(dat, brks = break_list$brks,
377-
bin_colors = break_list$colors,
378-
legend_name = legend_name))
379-
380-
suppressWarnings(plotly::ggplotly(tmp_z_plot) %>%
381-
plotly::style(line.width = 1, hoveron = "fills") %>%
382-
plotly::config(scrollZoom = TRUE) %>%
383-
plotly::plotly_build())
376+
z_plot_fun(dat, brks = break_list$brks,
377+
bin_colors = break_list$colors,
378+
legend_name = legend_name)
379+
380+
# tmp_z_plot <- suppressWarnings(z_plot_fun(dat, brks = break_list$brks,
381+
# bin_colors = break_list$colors,
382+
# legend_name = legend_name))
383+
384+
# suppressWarnings(plotly::ggplotly(tmp_z_plot) %>%
385+
# plotly::style(line.width = 1, hoveron = "fills") %>%
386+
# plotly::config(scrollZoom = TRUE) %>%
387+
# plotly::plotly_build())
384388
})
385389

386390
z_plot
@@ -399,13 +403,15 @@ zone_summary <- function(dat,
399403
bin_colors = break_list$colors,
400404
legend_name = legend_name))
401405

402-
z_plot <- suppressWarnings(plotly::ggplotly(tmp_z_plot) %>%
403-
plotly::style(line.width = 0.5) %>%
404-
plotly::config(scrollZoom = TRUE) %>%
405-
plotly::plotly_build())
406+
# z_plot <- suppressWarnings(plotly::ggplotly(tmp_z_plot) %>%
407+
# plotly::style(line.width = 0.5) %>%
408+
# plotly::config(scrollZoom = TRUE) %>%
409+
# plotly::plotly_build())
406410

407-
z_plot <- z_plot %>%
408-
style(hoveron = "fills")
411+
# z_plot <- z_plot %>%
412+
# style(hoveron = "fills")
413+
414+
z_plot <- tmp_z_plot
409415

410416
# save plot
411417
save_plot(project, "zone_summary", z_plot)
@@ -430,13 +436,14 @@ zone_summary <- function(dat,
430436
z_plot_c <- suppressWarnings(z_plot_fun(spat_join_c, brks = break_list_c$brks,
431437
bin_colors = break_list_c$colors,
432438
legend_name = legend_name))
433-
z_plot_c <- suppressWarnings(plotly::ggplotly(z_plot_c) %>%
434-
plotly::style(line.width = 1) %>%
435-
plotly::config(scrollZoom = TRUE) %>%
436-
plotly::plotly_build())
437439

438-
z_plot_c <- z_plot_c %>%
439-
style(hoveron = "fills")
440+
# z_plot_c <- suppressWarnings(plotly::ggplotly(z_plot_c) %>%
441+
# plotly::style(line.width = 1) %>%
442+
# plotly::config(scrollZoom = TRUE) %>%
443+
# plotly::plotly_build())
444+
445+
# z_plot_c <- z_plot_c %>%
446+
# style(hoveron = "fills")
440447

441448
# save plot
442449
save_plot(project, "zone_summary_confid", z_plot_c)

0 commit comments

Comments
 (0)