Drop-in replacement for plotly::renderPlotly() that injects the
av_scale_factor option before evaluating the expression.
Value
A plotly::renderPlotly() output.
Examples
example_file <- system.file(
"extdata", "bcl11a_rs1427407_example.csv", package = "AlphaVaR"
)
obj <- av_import_csv(example_file)
#> Reading bcl11a_rs1427407_example.csv ...
# Interactive counterpart of render_av_plot(): pair it with
# av_finalize_plotly() so expression() axis labels survive the conversion.
renderer <- render_av_plotly(
"dashboard_ecdf",
av_finalize_plotly(av_plot_distribution(obj, style = "ecdf"))
)
class(renderer)
#> [1] "shiny.render.function" "function"