This post just shows the comparison of streamgraph in Power BI Custom Visual and R Script Visual.
Power BI Desktop
We have a streamgraph custom visual available in Power BI. Download and import into Power BI Desktop.
Here I used a very simple dataset to explore the visual.
Pass the above dataset values to chart.
R Studio
To get the streamgraph visuals, we need to install the streamgraph package and other supporting packages .
Run the below script in R Studio or R console application.
install.packages(‘devtools’)
install.packages(‘Rcpp’)
install.packages(‘zoo’)
install.packages(‘DBI’)
install.packages(‘assertthat’)
install.packages(‘tibble’)
install.packages(‘yaml’)
devtools::install_github(“hrbrmstr/streamgraph”)
library(streamgraph)
# Create data:
year=rep(seq(2000,2005) , each=1)
name=c(letters[1:6])
value=c(1000,200,600,500,1250, 300)
data=data.frame(year, name, value)
streamgraph(data, key=”name”, value=”value”, date=”year”)
Power BI Desktop | R Studio |
Import Streamgraph visual | Install Streamgraph and related packages |
Visual values are keep
amending on the initial value |
Identifies the maximum value and accommodate all the values within the maximum range |
It is not interactive | It is interactive |
GUI Type | R Script Type |
Can’t export as HTML | Can export as HTML |
About the Author