Skip to contents

Generic function that converts an S7 object to a plain named list matching the ECharts JSON option structure.

Usage

to_list(x, ...)

Arguments

x

S7 object: Object to serialize.

...

Dots: Unused.

Value

List: Named list.

Examples

to_list(LineStyle(color = "#16a085", width = 2))
#> $color
#> [1] "#16a085"
#> 
#> $width
#> [1] 2
#>