Scatter RViz: Power BI R Custom Visual

Posted by on Dec 14, 2017 in RVIZ | No Comments


ScatterRViz is a custom visual for showing three variables in one chart. There is a possibility to zoom in and zoom out on the chart.

This custom visual needs

1-      X-axis as the first variable

2-      Y-axis as the second  variable

3-      Color (categorize variable) for the third axis

To use this chart, you need:

1-      One R version in your machine

2-      Automatically, some of the packages like “plotly,” “ggplot2”, and “htmlwidgets” will be installed.

3-      If these packages did not install automatically, then we need to install them in Rstudio via below commands:




In below example, I have shown the speed in the city and highway with a number of the cylinder as color. The speed in the city has been shown in the x-axis, speed in the highway has been shown on the Y-axis and the number of cylinders will be shown as different color.

Leila Etaati
Dr. Leila Etaati is Principal Data Scientist, BI Consultant, and Speaker. She has over 10 years’ experience working with databases and software systems. She was involved in many large-scale projects for big sized companies. Leila has PhD of Information System department, University of Auckland, MS and BS in computer science. Leila is Microsoft Data Platform MVP.

Leave a Reply

Your email address will not be published. Required fields are marked *