From the course: Tableau and R for Analytics Projects

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Add an R logistic regression model to a Tableau viz

Add an R logistic regression model to a Tableau viz

From the course: Tableau and R for Analytics Projects

Add an R logistic regression model to a Tableau viz

- [Instructor] After you test your logistic regression model in R and visualize your data in Tableau, you can create a calculated field that includes your R code. From there, you can use color, shape, or another characteristic to distinguish the two classes in your viz. We are going to use R as our calculation engine, so I need to start the Rserve process in R so we can't connect to it. I have opened a new R console, so I'll type library, library, and then in parenthesis and double quotes ("Rserve"), the initial R is capitalized and Enter. Rserve has been added to our session. And then I'll type Rserve, and we're not passing it any information so I have an open and closed parentheses and Enter, and it's been run. Now I can connect to it from inside of Tableau. So I'll press Alt + Tab to move to Tableau, and note that I don't currently have any workbooks open, and that is intentional so I can show you what happens…

Contents