| eLTTB_aggregator {shinyHugePlot} | R Documentation |
Aggregation using local minimum and maximum values, and Largest Triangle Three Buckets (LTTB) method.
Description
Efficient version off LTTB
by first reducing really large data with the min_max_ovlp_aggregator
and then further aggregating the reduced result with LTTB_aggregator.
Format
An R6::R6Class object
Super class
shinyHugePlot::aggregator -> eLTTB_aggregator
Public fields
LTTBAn R6 LTTB_aggregator instance
minmaxAn R6
min_max_ovlp_aggregatorinstance
Methods
Public methods
Method new()
Constructor of the aggregator.
Usage
eLTTB_aggregator$new(
...,
interleave_gaps,
coef_gap,
NA_position,
accepted_datatype = c("numeric", "integer", "character", "factor", "logical")
)Arguments
...Arguments pass to the constructor of
aggregator,LTTB_aggregatorandmin_max_oblp_aggregatorobjects.interleave_gaps, coef_gap, NA_position, accepted_datatypeArguments pass to the constructor of
aggregatorobject.
Method clone()
The objects of this class are cloneable with this method.
Usage
eLTTB_aggregator$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Examples
data(noise_fluct)
agg <- eLTTB_aggregator$new(interleave_gaps = TRUE)
d_agg <- agg$aggregate(noise_fluct$time, noise_fluct$f500, 1000)
plotly::plot_ly(x = d_agg$x, y = d_agg$y, type = "scatter", mode = "lines")
[Package shinyHugePlot version 0.2.6 Index]