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.
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.