Forum Discussion

bobbob123's avatar
bobbob123
Helper III
4 years ago

Plotly using R in POWER BI

Hi all,

 

First time using R and for someone reason its seems to be a hit and miss.

 

My code is below.

# dataset <- data.frame(H, SA, MA, Year, Subject)
# dataset <- unique(dataset)

library(plotly)

fig <- plot_ly(data = dataset, x = ~SA, y = ~MA)

fig
 
 
All I want to do is plotly to display a scatter plot using x=SA and y=MA.
 
For some reason its not working. It works perfectly fine in R Studio.
 
 
 

6 Replies