To cite plotly in publications use:

Sievert C (2018). plotly for R. https://plotly-r.com.

Corresponding BibTeX entry:

  @Manual{,
    title = {plotly for R},
    author = {Carson Sievert},
    year = {2018},
    url = {https://plotly-r.com},
  }