Skip to content

Conversation

@elong0527
Copy link
Collaborator

The change should fix the order in plotly figure.

# Example demonstrating the fix for issue #89
# Consistent treatment group ordering between table and interactive plot

devtools::load_all()

# Create the interactive forest plot with 3 groups
library("forestly")

meta_forestly(
  dataset_adsl = forestly_adsl_3grp,
  dataset_adae = forestly_adae_3grp,
  parameter_term = "any;rel;ser",
  population_subset = SAFFL == "Y",
  observation_subset = SAFFL == "Y"
) |>
  prepare_ae_forestly(parameter = "any;rel;ser") |>
  format_ae_forestly() |>
  ae_forestly()
image

elong0527 and others added 3 commits August 18, 2025 19:41
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Reversed y-axis ordering for non-reference groups in prop plots
- Reversed y-axis ordering for diff plots
- Ensures consistent visual ordering between table and interactive plots

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Added Plotly.js integration information
- Documented sparkline_point_js() function
- Added brew and plotly dependencies
- Included notes about JavaScript templates and debugging

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@wangben718 wangben718 merged commit 87ea4cc into main Aug 20, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants