Implementing a circular barplot in Power BI
As you have already seen in the previous chapters, Power BI is capable of rendering graphs developed with ggplot2
using R visuals. Therefore, whatever the complexity of the graph created using ggplot2
, you can be sure that Power BI handles it well.
To create a circular barplot in Power BI, proceed as follows:
- Make sure that Power BI Desktop is referencing the version of CRAN R dedicated to R visuals in Options.
- Click on Get Data, Text/CSV, and then Connect.
- Select the
Scores.csv
file found in theChapter15
folder and click Open. - You will see a preview of the CSV file. Make sure to select
65001: Unicode (UTF-8)
as File Origin. This way, special characters in speaker names will be displayed correctly. Then, click on Load. - Click on the R Visual icon in the Visualizations panel, enable it, and then resize the visual as all the available canvas.
- Keeping the R visual selected, expand the
Scores
table under the Fields...