R, Visualization

Quick start on Tableau and R

If you are curious about how R integration works in Tableau 8.1 check out my recent article on Tableau blog. You will also find some example Tableau workbooks focusing on different use cases.

I used some R packages that are not part of base R (such as plyr). So make sure you have all the necessary R packages installed.


8 thoughts on “Quick start on Tableau and R

  1. Amine says:

    Thank you for this article but i have a problem.
    So i’ve installed Rserve in my machine and the communication with Tableau works perfectly. But the problem is that i want to create a new function in R (freegeoip). And then i want to call it in Tableau.

    using this formula : SCRIPT_STR(‘freegeoip(.arg1)’,attr([Ip]))

    but it display this error:

    Error in eval(expr, envir, enclos) : could not find function “freegeoip”

  2. Hi,

    Its a very good way to solve the issue with geo coding. Thank you very much for your post. I just want to know, are there any improvements in 9.3 from 8 regarding R connectivity with Tableau ?

    • No. Tableau passes R scripts and data to R runtime and retrieves the result to display them in Tableau. If you would like to use Rattle, my suggestion would be to do a write.csv in your SCRIPT_ call from Tableau to output the data you want, then use Rattle independently.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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