From the course: Tableau and R for Analytics Projects

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Add an R clustering model to a Tableau viz

Add an R clustering model to a Tableau viz

From the course: Tableau and R for Analytics Projects

Start my 1-month free trial

Add an R clustering model to a Tableau viz

- (Instructor) After you visualize your data in Tableau, you can create a calculated field using an R command to identify clusters in your dataset. In this movie, I will walk you through the process of creating this calculated field, and then, edit it to change the number of clusters or identifiers in your data. My sample file is 05_04_AddClusters and you can find it in the Chapter 5 folder of your exercise files collection. It's also important that you have R running in the background. And also within R, that you have Rserve enabled. So to make sure that's in place, I'll press ALT+TAB to move over to R, and I see that I'm in a blank or new R console, so that means Rserve isn't running yet. I can turn that on using two commands, so do library("Rserve"), capital R, everything else lower case, and then enter, all right, no error, everything looks good. Now, to turn on Rserve, I'll just type Rserve() with nothing in…

Contents