Convert Matplotlib To Plotly R