<?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 Re: Heatmaps in R Script Showcase</title>
    <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/84251#M79</link>
    <description>&lt;P&gt;Anonymous﻿&lt;/LI-USER&gt;&amp;nbsp;Looks nice and thanks for adding the R installation script!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="8545" data-lia-user-login="vrocca" class="lia-mention lia-mention-user"&gt;vrocca﻿&lt;/a&gt;&amp;nbsp;Thanks! In R studio I usually&amp;nbsp;use the&amp;nbsp;&lt;EM&gt;install.packages('packagename')&amp;nbsp;&lt;/EM&gt;to add a new package. And above your script or markdown document&amp;nbsp;&lt;EM&gt;library('packagename')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2016 14:53:04 GMT</pubDate>
    <dc:creator>fathomson</dc:creator>
    <dc:date>2016-10-31T14:53:04Z</dc:date>
    <item>
      <title>Heatmaps</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/68573#M42</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;img&gt;﻿&lt;/img&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;An heatmap&amp;nbsp;&lt;SPAN&gt;is a graphical representation of data where the individual values contained in a matrix are represented as colors. This R script shows an heatmap of calls received during the week. Based on the the timestamps it calculates the count per weekday/hour.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;Prerequisites (The sample .pbix files will not work without these prerequites completed)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. Install R Engine&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Power BI Desktop does not include, deploy or install the R engine. To run R scripts in Power BI Desktop, you must separately install&lt;/SPAN&gt;R&lt;SPAN&gt; on your local computer. You can download and install &lt;/SPAN&gt;R&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;for free from many locations, including the &lt;/SPAN&gt;&lt;A title="" href="https://mran.revolutionanalytics.com/download/" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;Revolution Open download page&lt;/A&gt;&lt;SPAN&gt;, and the &lt;/SPAN&gt;&lt;A title="" href="https://cran.r-project.org/bin/windows/base/" target="_blank" rel="nofollow noopener noreferrer noopener noreferrer"&gt;CRAN Repository&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Install the required R packages.&lt;/P&gt;&lt;P&gt;Download the R script attached to this message and run it to install all required packages on your local machine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Required&amp;nbsp;R packages:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;dplyr, ggplot2, ggthemes, zoo&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Tested on:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;CRAN 3.3.1, MRO 3.3.0&lt;SPAN&gt;, powerbi.com&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 09:26:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/68573#M42</guid>
      <dc:creator>fathomson</dc:creator>
      <dc:date>2016-09-15T09:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Heatmaps</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/70693#M52</link>
      <description>&lt;P&gt;There doesnt appear to be any R script attached to this topic?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 02:12:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/70693#M52</guid>
      <dc:creator>mike_honey</dc:creator>
      <dc:date>2016-09-22T02:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Heatmaps</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/82381#M74</link>
      <description>&lt;P&gt;I wish I'd seen this posting before I started my example...:smileyhappy:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My version uses the same ggplot and geom_tile functions as&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="14225" data-lia-user-login="fathomson" class="lia-mention lia-mention-user"&gt;fathomson﻿&lt;/a&gt;&amp;nbsp;but, rather than use R to massage the data with dplyr etc., it links directly to fields dragged from PBI - a typical Date dimension column&amp;nbsp;and uses a calculated Time Bucket column as the other dimension against which to map the Call Count measure. &amp;nbsp;I DO use the &amp;nbsp;'complete' function from the 'tidyr' package to fill in missing values and avoid holes in the heatmap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also played with presenting the value of the measure on the tile and some other formatting options. &amp;nbsp;I tried to use the viridis palette package, but it's not supported on PBI Service yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Required R packages: ggplot2, ggthemes, tidyr. (see attached R script)&lt;/P&gt;&lt;P&gt;&lt;img&gt;﻿&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 07:11:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/82381#M74</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-26T07:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Heatmaps</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/83740#M78</link>
      <description>&lt;P&gt;Here are the links to download the packages referenced:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dplyr: &lt;A href="https://cran.r-project.org/src/contrib/dplyr_0.5.0.tar.gz" target="_blank"&gt;https://cran.r-project.org/src/contrib/dplyr_0.5.0.tar.gz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ggplot2:&amp;nbsp;&lt;A href="https://cran.r-project.org/src/contrib/ggplot2_2.1.0.tar.gz" target="_blank"&gt;https://cran.r-project.org/src/contrib/ggplot2_2.1.0.tar.gz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;ggthemes:&amp;nbsp;&lt;A href="https://cran.fhcrc.org/src/contrib/ggthemes_3.2.0.tar.gz" target="_blank"&gt;https://cran.fhcrc.org/src/contrib/ggthemes_3.2.0.tar.gz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;zoo:&amp;nbsp;&lt;A href="https://cran.r-project.org/src/contrib/zoo_1.7-13.tar.gz" target="_blank"&gt;https://cran.r-project.org/src/contrib/zoo_1.7-13.tar.gz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, you can install these throug R Studio by clicking on Packages &amp;gt; Install and entering the name of the package.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 19:52:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/83740#M78</guid>
      <dc:creator>vrocca</dc:creator>
      <dc:date>2016-10-28T19:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Heatmaps</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/84251#M79</link>
      <description>&lt;P&gt;Anonymous﻿&lt;/a&gt;&amp;nbsp;Looks nice and thanks for adding the R installation script!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="8545" data-lia-user-login="vrocca" class="lia-mention lia-mention-user"&gt;vrocca﻿&lt;/a&gt;&amp;nbsp;Thanks! In R studio I usually&amp;nbsp;use the&amp;nbsp;&lt;EM&gt;install.packages('packagename')&amp;nbsp;&lt;/EM&gt;to add a new package. And above your script or markdown document&amp;nbsp;&lt;EM&gt;library('packagename')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 14:53:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/84251#M79</guid>
      <dc:creator>fathomson</dc:creator>
      <dc:date>2016-10-31T14:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Heatmaps</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/246070#M220</link>
      <description>&lt;P&gt;Is there any way we could change this from a count per hour / day. To an average count per hour / day?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 19:07:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/246070#M220</guid>
      <dc:creator>Sclark</dc:creator>
      <dc:date>2017-09-05T19:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Heatmaps</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/453244#M299</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="14225" data-lia-user-login="fathomson" class="lia-mention lia-mention-user"&gt;fathomson&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to R and just installed&amp;nbsp;Microsoft R Open onto my laptop. I have also downloaded the rscript. However, when I click&amp;nbsp;on Packages-&amp;gt;Install Packages....this appears ( see attached).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I'm perhaps doing it wrong. Ultimately,&amp;nbsp;I need the 2 dimension heat map to be on powerbi so that I can use it on my data. I'm a bit confused as to how to go about this so would be great if you could list down a step by step guide to this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lina&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 05:23:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/453244#M299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-03T05:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Heatmaps</title>
      <link>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/453245#M300</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="14225" data-lia-user-login="fathomson" class="lia-mention lia-mention-user"&gt;fathomson&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to R and just installed&amp;nbsp;Microsoft R Open onto my laptop. I have also downloaded the rscript. However, when I click&amp;nbsp;on Packages-&amp;gt;Install Packages....this appears ( see attached).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I'm perhaps doing it wrong. Ultimately,&amp;nbsp;I need the 2 dimension heat map to be on powerbi so that I can use it on my data. I'm a bit confused as to how to go about this so would be great if you could list down a step by step guide to this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lina&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 05:25:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/R-Script-Showcase/Heatmaps/m-p/453245#M300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-03T05:25:13Z</dc:date>
    </item>
  </channel>
</rss>

