Generates a detailed plot showing the relationship between power and total sample size for each comparator and the overall combined comparators. The plot also includes confidence intervals for power estimates and highlights the target power with a dashed line for easy visual comparison.

# S3 method for class 'simss'
plot(x, ...)

Arguments

x

An object of class simss containing simulation results.

...

Additional arguments to be passed to the plot.simss function for customization.

Value

A ggplot object illustrating:

  • Power (y-axis) vs. Total Sample Size (x-axis) for individual endpoints and comparators.

  • Error bars representing the 95% confidence interval of the power estimates.

  • A dashed horizontal line indicating the target power for comparison.

  • Faceted panels for each comparator, making it easy to compare results across different groups.

Details

The plot dynamically adjusts to exclude unnecessary components, such as redundant endpoints or comparators with insufficient data, ensuring clarity and simplicity. The ggplot2 framework is used for visualizations, allowing further customization if needed.

Author

Johanna Muñoz johanna.munoz@fromdatatowisdom.com