R Plotly Add Annotations Cannot Handle Factor Variables Stack Overflow

R Plotly Add Annotations Cannot Handle Factor Variables Stack Overflow