Skip to contents

This function converts a ggplot object to a plotly object and adjusts the layout to ensure consistent spacing for the y-axis labels and positions the legend below the plot.

Usage

adjusted_ggplotly(p)

Arguments

p

A ggplot object to be adjusted and converted.

Value

A plotly object with adjusted layout settings.