@@ -373,14 +373,18 @@ zone_summary <- function(dat,
373
373
374
374
break_list <- z_brk_fun(dat , breaks , n.breaks , bin_colors , count = count )
375
375
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())
384
388
})
385
389
386
390
z_plot
@@ -399,13 +403,15 @@ zone_summary <- function(dat,
399
403
bin_colors = break_list $ colors ,
400
404
legend_name = legend_name ))
401
405
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())
406
410
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
409
415
410
416
# save plot
411
417
save_plot(project , " zone_summary" , z_plot )
@@ -430,13 +436,14 @@ zone_summary <- function(dat,
430
436
z_plot_c <- suppressWarnings(z_plot_fun(spat_join_c , brks = break_list_c $ brks ,
431
437
bin_colors = break_list_c $ colors ,
432
438
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())
437
439
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")
440
447
441
448
# save plot
442
449
save_plot(project , " zone_summary_confid" , z_plot_c )
0 commit comments