Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17878

Incorrect representation of Bar Graph using R Code in Power BI

$
0
0

Hello Everyone,

This issue is related to replication of a graph/pattern in Power BI using R code.

This is our Dataset -
A,B,C
0,0,1
0,1,0
0,1,1
1,0,0
1,1,0
1,1,0
1,1,1
1,1,1



Rcode :
data <- fread('C:/Users/kkuncham/Downloads/test_upset.txt', sep=',')
 
require('UpSetR','C:/Users/kkuncham/Library')
library(UpSetR)

This is the graph in R -

graph in R.png
 

When I try to replicate the below-mentioned code in  Power BI-
 
require('data.table','C:/Users/kkuncham/Library')
library(data.table)
data = as.data.table(dataset)
require('UpSetR','C:/Users/kkuncham/Library')
library(UpSetR)
upset(data )

I see this graph, "Bar Graphs" are incorrectly plotted -

graph in Power BI.png
I would really appreciate if anyone can help me with this. Thanks.

Best Regards,
Vivek L

Viewing all articles
Browse latest Browse all 17878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>