shiny_hugeplot {shinyHugePlot} | R Documentation |
Wrapper for plotting large-sized data using shinyHugePlot
Description
This is a S3 class function to easily plot large-sized data using
downsampler
object including plotly
and
shiny
application.
Using data that is given as a first argument,
shiny
application will be constructed and (by default,) executed.
As the first argument, many classes are applicable,
ranging from a numeric vector representing y values
to a downsampler
object containing
original data, layout of the figure and
options for aggregating the original data.
Usage
shiny_hugeplot(obj, ...)
## Default S3 method:
shiny_hugeplot(
obj = NULL,
y = NULL,
tz = Sys.timezone(),
use_light_build = TRUE,
plotly_options = list(type = "scatter", mode = "lines"),
plotly_layout_options = list(),
aggregator = min_max_aggregator$new(),
n_out = 1000L,
run_shiny = TRUE,
downsampler_options = list(),
shiny_options = list(),
width = "100%",
height = "600px",
verbose = FALSE,
...
)
## S3 method for class 'character'
shiny_hugeplot(
obj = NULL,
n_out = 1000L,
aggregator = min_max_aggregator$new(),
run_shiny = TRUE,
use_light_build = TRUE,
fread_options = list(),
downsampler_options = list(),
plotly_options = list(type = "scatter", mode = "lines"),
plotly_layout_options = list(),
shiny_options = list(),
width = "100%",
height = "600px",
verbose = FALSE,
...
)
## S3 method for class 'matrix'
shiny_hugeplot(
obj = NULL,
n_out = 1000L,
aggregator = min_max_aggregator$new(),
run_shiny = TRUE,
use_light_build = TRUE,
downsampler_options = list(),
plotly_options = list(type = "scatter", mode = "lines"),
plotly_layout_options = list(),
shiny_options = list(),
width = "100%",
height = "600px",
verbose = FALSE,
...
)
## S3 method for class 'data.frame'
shiny_hugeplot(
obj = NULL,
tz = Sys.timezone(),
n_out = 1000L,
aggregator = min_max_aggregator$new(),
run_shiny = TRUE,
use_light_build = TRUE,
downsampler_options = list(),
plotly_options = list(type = "scatter", mode = "lines"),
plotly_layout_options = list(),
shiny_options = list(),
width = "100%",
height = "600px",
verbose = FALSE,
...
)
## S3 method for class 'plotly'
shiny_hugeplot(
obj,
n_out = 1000L,
aggregator = min_max_aggregator$new(),
run_shiny = TRUE,
use_light_build = TRUE,
downsampler_options = list(),
shiny_options = list(),
width = "100%",
height = "600px",
verbose = FALSE,
...
)
## S3 method for class 'downsampler'
shiny_hugeplot(
obj,
run_shiny = TRUE,
shiny_options = list(),
width = "100%",
height = "600px",
verbose = FALSE,
...
)
Arguments
obj |
Numeric/ |
... |
Not used. |
y |
Numeric vector, optional.
y values of the figure of |
tz |
Timezone, optional.
It is used to convert the |
use_light_build |
Boolean, optional.
Whether |
plotly_options |
Named list, optional.
Arguments passed to |
plotly_layout_options |
Named list, optional.
Arguments passed to |
aggregator |
Instance of R6 classes for aggregating data, optional.
The classes can be listed using |
n_out |
Integer, optional. Number of samples get by the down-sampling. By default, 1000. |
run_shiny |
Boolean, optional.
whether a generated |
downsampler_options |
Named list, optional.
Arguments passed to |
shiny_options |
Named list, optional.
Arguments passed to |
width , height |
Character, optional.
Arguments passed to |
verbose |
Boolean.
Whether detailed messages to check the procedures are shown. By default, |
fread_options |
Named list, optional.
Arguments passed to |
Examples
data(noise_fluct)
shiny_hugeplot(noise_fluct$f500)
shiny_hugeplot(noise_fluct$time, noise_fluct$f500)