Skip to contents

Overview

There are several different ways to share to share your custom dashboard online, including shinyapps.io, posit connect, and shiny server. For smaller organizations, I recommend shinyapps.io because it is straightforward to use and the free tier includes 25 hours of active use per month.

Uploading to Shinyapps.io

  1. Make an account on shinyapps.io
  2. In shinyapps, go to Account > Tokens. Select Show, Show Secret and copy the provided code. Return to RStudio/Posit Connect and paste the code in the console window. Hit ENTER to run the code.
  3. Run data-raw/08_launch.R. If prompted with a message that WQdashboard is not installed, select option 1.
  4. Shinyapps will host the dashboard as a standalone website. You can find the link to the dashboard under “Recent Applications” on the main page, or under Applications > All.
shinyapps token
shinyapps token

Embedding

WQdashboard can be embedded in any other website with an iframe. Simply copy the code below and replace “LINK” with the link to your dashboard. The height, width, and title can be adjusted as needed.

<iframe src="LINK" title="Water Quality Dashboard" width="100%" height = "800"></iframe>

WQdashboard will load whenever the page it is embedded on is opened. If you are concerned about using too many active hours, embed WQdashboard on its own page instead of the homepage.