Use Tableau with R


Tableau Desktop supports integration with R. (Tableau Online/Public don’t support R.)

More info can be found from this whitepaper: Using R and Tableau Software

Basically you need to install Rserve first by the following commands:


Then connect Tableau to the R Server. Follow the steps in this video tutorial:

How to integrate R and Tableau

Or this article: How to use R Studio with Tableau

And use R scripts in Tableau’s calculated field. There are four functions:


They each return a real number, string, integer, and boolean.

Video tutorial: Bring your R Scripts to Tableau

More examples using R in Tableau



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s