Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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")
)A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.