## ----setup_simulation, message=FALSE, warning=FALSE, eval=FALSE--------------- # library(octawave) # library(plotly) # library(sync3d) # # # 1. Simulate a quantum wave state (Harmonic Lattice) # time_vec <- seq(0, 4 * pi, length.out = 100) # raw_quantum_data <- data.frame( # X = sin(time_vec), # Y = cos(time_vec) # ) # # # 2. Execute spectral analysis # analysis_results <- wave2lyze(raw_quantum_data) # # # 3. Construct the topological bridge for sync3d # sync_structures <- prep_sync3d(analysis_results) # # # 4. Initialize base plot on Trace 0 (Strict Mode: Markers) # base_plot <- plot_ly( # data = sync_structures$nodes, # x = ~x, y = ~y, z = ~z, # type = 'scatter3d', # mode = 'markers', # marker = list(size = 4, color = '#008080') # ) # # # 5. Inject WebGL synchronized edge matrix # final_plot <- add_synchronized_3d_edges(base_plot, sync_structures$edges) # final_plot