<?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 Converting power bi R script visual to custom R visual in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Converting-power-bi-R-script-visual-to-custom-R-visual/m-p/496737#M15214</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm trying to add plotly to my R-script visualization, and have tried the RADACAD guide at &lt;A href="http://radacad.com/interactive-map-using-r-and-power-bi-create-custom-visual-part-1" target="_blank"&gt;http://radacad.com/interactive-map-using-r-and-power-bi-create-custom-visual-part-1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I got the visualization working in PBI although the code probably looks awful. Now I'm trying to add the functionality from plotly, so I can see the values of the datapoints on my scatterplot.&lt;BR /&gt;&lt;BR /&gt;I got some sample data where the table has the amazing name "Sheet1" and the columns I add to "values" are "Price", "Production", and "Date".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;here is the code that I got working in PBI, and I'm trying to package into a custom R visual&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;library(ggplot2)&lt;BR /&gt;p = qplot(1:10, (1:10)^3)&lt;BR /&gt;g = ggplot(dataset, aes(x=Price, y=Production, color = Date))+&lt;BR /&gt;geom_point() +&lt;BR /&gt;theme(axis.text.x = element_text(size=14),&lt;BR /&gt;axis.text.y = element_text(size=14),&lt;BR /&gt;axis.title.x = element_text(size=16),&lt;BR /&gt;axis.title.y = element_text(size=16),&lt;BR /&gt;panel.background = element_rect(fill = "white",&lt;BR /&gt;colour = "777777",&lt;BR /&gt;size = 0.4, linetype = "solid"),&lt;BR /&gt;panel.grid.major = element_line(size = 0.08, linetype = 'dashed',&lt;BR /&gt;colour = "777777"),&lt;BR /&gt;panel.grid.minor = element_line(size = 0.08, linetype = 'dashed',&lt;BR /&gt;colour = "777777")) +&lt;BR /&gt;theme(legend.position="bottom") +&lt;BR /&gt;ylab("Production") +&lt;BR /&gt;xlab("Price") +&lt;BR /&gt;stat_smooth(method = "lm", formula = y ~ poly(x,2), size = 1, se = FALSE)&lt;BR /&gt;g$respect = TRUE&lt;BR /&gt;library(grid)&lt;BR /&gt;grid.draw(g)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Any input on how to convert the above into what needs to go in the example below is appreciated!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;############### Library Declarations ###############&lt;BR /&gt;libraryRequireInstall("ggplot2");&lt;BR /&gt;libraryRequireInstall("plotly")&lt;BR /&gt;####################################################&lt;/P&gt;&lt;P&gt;################### Actual code ####################&lt;BR /&gt;g = qplot(Values$Data, data = Values, fill = Values$Type, main = Sys.time());&lt;BR /&gt;####################################################&lt;/P&gt;&lt;P&gt;############# Create and save widget ###############&lt;BR /&gt;p = ggplotly(g);&lt;BR /&gt;internalSaveWidget(p, 'out.html');&lt;/P&gt;</description>
    <pubDate>Wed, 22 Aug 2018 23:41:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-22T23:41:17Z</dc:date>
    <item>
      <title>Converting power bi R script visual to custom R visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Converting-power-bi-R-script-visual-to-custom-R-visual/m-p/496737#M15214</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm trying to add plotly to my R-script visualization, and have tried the RADACAD guide at &lt;A href="http://radacad.com/interactive-map-using-r-and-power-bi-create-custom-visual-part-1" target="_blank"&gt;http://radacad.com/interactive-map-using-r-and-power-bi-create-custom-visual-part-1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I got the visualization working in PBI although the code probably looks awful. Now I'm trying to add the functionality from plotly, so I can see the values of the datapoints on my scatterplot.&lt;BR /&gt;&lt;BR /&gt;I got some sample data where the table has the amazing name "Sheet1" and the columns I add to "values" are "Price", "Production", and "Date".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;here is the code that I got working in PBI, and I'm trying to package into a custom R visual&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;library(ggplot2)&lt;BR /&gt;p = qplot(1:10, (1:10)^3)&lt;BR /&gt;g = ggplot(dataset, aes(x=Price, y=Production, color = Date))+&lt;BR /&gt;geom_point() +&lt;BR /&gt;theme(axis.text.x = element_text(size=14),&lt;BR /&gt;axis.text.y = element_text(size=14),&lt;BR /&gt;axis.title.x = element_text(size=16),&lt;BR /&gt;axis.title.y = element_text(size=16),&lt;BR /&gt;panel.background = element_rect(fill = "white",&lt;BR /&gt;colour = "777777",&lt;BR /&gt;size = 0.4, linetype = "solid"),&lt;BR /&gt;panel.grid.major = element_line(size = 0.08, linetype = 'dashed',&lt;BR /&gt;colour = "777777"),&lt;BR /&gt;panel.grid.minor = element_line(size = 0.08, linetype = 'dashed',&lt;BR /&gt;colour = "777777")) +&lt;BR /&gt;theme(legend.position="bottom") +&lt;BR /&gt;ylab("Production") +&lt;BR /&gt;xlab("Price") +&lt;BR /&gt;stat_smooth(method = "lm", formula = y ~ poly(x,2), size = 1, se = FALSE)&lt;BR /&gt;g$respect = TRUE&lt;BR /&gt;library(grid)&lt;BR /&gt;grid.draw(g)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Any input on how to convert the above into what needs to go in the example below is appreciated!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;############### Library Declarations ###############&lt;BR /&gt;libraryRequireInstall("ggplot2");&lt;BR /&gt;libraryRequireInstall("plotly")&lt;BR /&gt;####################################################&lt;/P&gt;&lt;P&gt;################### Actual code ####################&lt;BR /&gt;g = qplot(Values$Data, data = Values, fill = Values$Type, main = Sys.time());&lt;BR /&gt;####################################################&lt;/P&gt;&lt;P&gt;############# Create and save widget ###############&lt;BR /&gt;p = ggplotly(g);&lt;BR /&gt;internalSaveWidget(p, 'out.html');&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 23:41:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Converting-power-bi-R-script-visual-to-custom-R-visual/m-p/496737#M15214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-22T23:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Converting power bi R script visual to custom R visual</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Converting-power-bi-R-script-visual-to-custom-R-visual/m-p/498110#M15275</link>
      <description>&lt;P&gt;Please send this issue to&amp;nbsp;Power BI R Custom Visuals Support &amp;lt;pbircvsupport@microsoft.com&amp;gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 07:19:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Converting-power-bi-R-script-visual-to-custom-R-visual/m-p/498110#M15275</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-08-24T07:19:13Z</dc:date>
    </item>
  </channel>
</rss>

