cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Interactive R custom visuals with manipulatedwidget

Hi , 

We would like to combine the use template RHTML (ggplot2) and manipulatedwidget (but manipulatedwidget package R is not included in list of package in powerBI) for create an internal custom visual R

 

Requierements

Change the dimensions/attributs in the visual R and keep the interactive part.

Is there another way ? 

library(manipulateWidget)
library(plotly)

plotTest <- function(xvar, yvar, zvar){
  
  plot_ly(x = ~dataset[[xvar]], y = ~dataset[[yvar]], color = ~dataset[[zvar]],
          type = "scatter", mode = "markers") %>% 
    layout(xaxis = list(title=xvar), yaxis = list(title=yvar))
}

plotTest("Dim1", "Dim2", "Cluster")

varNames <- names(dataset)[2:6]
variables <- names (dataset)[7:10]

manipulateWidget(
  plotTest(xvar, yvar, zvar),
  xvar = mwSelect(varNames),
  yvar = mwSelect(varNames, value = "Dim1"),
  zvar = mwSelect (variables, value = "Cluster")

)
  
Thanks for your help, 
Fanny
0 REPLIES 0

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors