Forum Discussion

ispajic's avatar
ispajic
Helper I
8 years ago

R visual behaving differently in PBI than in R console

Hi,

 

I have a simple double-source plot code:

plot(dataset[,2],type="b")
par(new=T)
plot(dataset[,4], ylim=c(0.0,83), yaxt='n', xaxt='n', ann=FALSE, type="n")
text(dataset[,4], labels=dataset[,3], cex= 0.7, pos="3")
par(new=F)

In my R console, the X axis is indexed by the first column, and shows up properly:

However, in the PowerBI visual, the X axis gets messed up and I get an odd result:

I'm not sure what it's using as an X axis, but the dataset order is identical to my R console version.

Here is the source file.

https://www.dropbox.com/s/vbee6wpze8g1vo2/dummy-line.csv?dl=0