<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Interactive R custom visuals with manipulatedwidget in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Interactive-R-custom-visuals-with-manipulatedwidget/m-p/510394#M1350</link>
    <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We would like to combine the use template RHTML (ggplot2) and manipulatedwidget (but &lt;SPAN&gt;manipulatedwidget&amp;nbsp;&lt;/SPAN&gt;package R is not included in list of package in powerBI) for create an internal custom visual R&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Requierements&lt;/U&gt; :&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change the dimensions/attributs in the visual R and keep the interactive part.&lt;/P&gt;&lt;P&gt;Is there another way ?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;library(manipulateWidget)
library(plotly)

plotTest &amp;lt;- function(xvar, yvar, zvar){
  
  plot_ly(x = ~dataset[[xvar]], y = ~dataset[[yvar]], color = ~dataset[[zvar]],
          type = "scatter", mode = "markers") %&amp;gt;% 
    layout(xaxis = list(title=xvar), yaxis = list(title=yvar))
}

plotTest("Dim1", "Dim2", "Cluster")

varNames &amp;lt;- names(dataset)[2:6]
variables &amp;lt;- names (dataset)[7:10]

manipulateWidget(
  plotTest(xvar, yvar, zvar),
  xvar = mwSelect(varNames),
  yvar = mwSelect(varNames, value = "Dim1"),
  zvar = mwSelect (variables, value = "Cluster")

)&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for your help,&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Fanny&lt;/DIV&gt;</description>
    <pubDate>Fri, 07 Sep 2018 11:21:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-07T11:21:25Z</dc:date>
    <item>
      <title>Interactive R custom visuals with manipulatedwidget</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Interactive-R-custom-visuals-with-manipulatedwidget/m-p/510394#M1350</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We would like to combine the use template RHTML (ggplot2) and manipulatedwidget (but &lt;SPAN&gt;manipulatedwidget&amp;nbsp;&lt;/SPAN&gt;package R is not included in list of package in powerBI) for create an internal custom visual R&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Requierements&lt;/U&gt; :&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change the dimensions/attributs in the visual R and keep the interactive part.&lt;/P&gt;&lt;P&gt;Is there another way ?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;library(manipulateWidget)
library(plotly)

plotTest &amp;lt;- function(xvar, yvar, zvar){
  
  plot_ly(x = ~dataset[[xvar]], y = ~dataset[[yvar]], color = ~dataset[[zvar]],
          type = "scatter", mode = "markers") %&amp;gt;% 
    layout(xaxis = list(title=xvar), yaxis = list(title=yvar))
}

plotTest("Dim1", "Dim2", "Cluster")

varNames &amp;lt;- names(dataset)[2:6]
variables &amp;lt;- names (dataset)[7:10]

manipulateWidget(
  plotTest(xvar, yvar, zvar),
  xvar = mwSelect(varNames),
  yvar = mwSelect(varNames, value = "Dim1"),
  zvar = mwSelect (variables, value = "Cluster")

)&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for your help,&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Fanny&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 Sep 2018 11:21:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Interactive-R-custom-visuals-with-manipulatedwidget/m-p/510394#M1350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-07T11:21:25Z</dc:date>
    </item>
  </channel>
</rss>

