This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This code creates an example Nested Column Chart of the type developed by Brittany Rosenau | |
# this code will produce the graphic below if you paste it into R Studio and run it | |
# to run it in a Power BI R visual, just import the csv into Power Query | |
# and then paste in the code below, changing df <- dataset | |
# note that "dataset" is the variable name used by convention in Power BI to call the table | |
# resulting from the previous step | |
# Load necessary libraries | |
library(ggplot2) | |
library(dplyr) |