get_restyleInfo: List the difference of traces from two plots

View source: R/plotly_restyle.R

get_restyleInfoR Documentation

List the difference of traces from two plots

Description

List the difference of traces from two plots

Usage

get_restyleInfo(plt0, plt1, traceId)

Arguments

plt0

current plotly plot

plt1

new plotly plot

traceId

the name of one plotly_build data column that identifies trace. If not sure, checkTraceColumns(plt0) will give you all the available columns across traces.

Value

a list of two, one tell which traces have changed, the other give the restyle content of each changed trace.


tpemartin/econIDV documentation built on July 2, 2023, 7:36 p.m.