Forum Discussion
ispajic
8 years agoHelper I
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
2 Replies
- v-chuncz-msftCommunity Support
- ispajicHelper I
Hi,
that doesn't help. Please see the pbix file.
https://www.dropbox.com/s/9e4pl0gr5fjqoog/r-visual_plot.pbix?dl=0
Currently it's Timestamp, Score, Event, EventZero, but no other order gets the right chart either.
I wonder if the de-duplication is messing up my timestamp?