Install r-cran-plotly by entering the following commands in the terminal:
sudo apt update sudo apt install r-cran-plotly
Description:
create interactive web graphics via 'plotly.js' in GNU R
Easily translate 'ggplot2' graphs to an interactive web-based version and/or create custom web-based visualizations directly from R. Once uploaded to a 'plotly' account, 'plotly' graphs (and the data behind them) can be viewed and modified in a web browser.
Homepage: https://cran.r-project.org/package=plotly
Version: 4.7.1+dfsg-1
Section: universe/gnu-r