Skip to content

Latest commit

 

History

History

plumber-tableau-penguins

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

demo-plumber-tableau-penguins

A demo of using plumbertableau to create APIs that Tableau can consume.

plumber-tableau

API Deployment

Git-backed

After making any code changes run the following:

renv::snapshot()
rsconnect::writeManifest("app")

Next, push your changes to git. RStudio Connect will then automatically redeploy the app.

Programatic

You can also deploy the app using the rsconnect api:

rsconnect::deployAPI(
  api = "app",
  appFiles = c("plumber.R"),
  appTitle = "Plumber Tableau Penguins"
)

Tableau Deployment

After deploying the API follow the instructions from https://rstudio.github.io/plumbertableau/articles/tableau-developer-guide.html to deploy in Tableau. For example, you must consider Tableau to use Connect as an Analytics Extension:

image (1)

Calling the API from Tableau

Create a field named Selected Dimension Value that will allow users to change which field they want to identify outliers based on.

selected-dim

Create a field named Is Outlier? which calls the plumber API using the SCRIPT_BOOL function. For each row in the data this will return TRUE or FALSE. Values that are TRUE are outliers.

is-outlier

Construct the scatter plot that colors each data point based on its outlier status.

edit-tableau