<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>data viz Archives - Ger Inberg</title>
	<atom:link href="https://gerinberg.com/category/data-viz/feed/" rel="self" type="application/rss+xml" />
	<link>https://gerinberg.com/category/data-viz/</link>
	<description>data science developer</description>
	<lastBuildDate>Thu, 11 Aug 2022 18:09:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>

<image>
	<url>https://gerinberg.com/wp-content/uploads/2017/05/favicon-150x150.jpg</url>
	<title>data viz Archives - Ger Inberg</title>
	<link>https://gerinberg.com/category/data-viz/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Multi page shiny apps</title>
		<link>https://gerinberg.com/2022/08/11/multi-page-shiny-apps/</link>
		
		<dc:creator><![CDATA[Ger]]></dc:creator>
		<pubDate>Thu, 11 Aug 2022 18:09:05 +0000</pubDate>
				<category><![CDATA[data viz]]></category>
		<category><![CDATA[shiny]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[donation]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[R]]></category>
		<guid isPermaLink="false">https://gerinberg.com/?p=1834</guid>

					<description><![CDATA[<p>Web applications can have rich functionality nowadays. For example a website of an E-commerce shop has a page about the products they are selling, a page about their conditions, a shopping cart page and an order page. Furthermore it can handle different HTTP requests from [&#8230;]</p>
<p>The post <a href="https://gerinberg.com/2022/08/11/multi-page-shiny-apps/">Multi page shiny apps</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Web applications can have rich functionality nowadays. For example a website of an E-commerce shop has a page about the products they are selling, a page about their conditions, a shopping cart page and an order page. Furthermore it can handle different HTTP requests from the user. A GET request is used to retrieve a page (e.g. products) from the server whereas a POST request is used to send information to the server (e.g. make order).</p>
<h4>Problem</h4>
<p>Shiny apps are, by default, a bit limited when looking at it from this perspective.  It can handle only GET requests by default, unless you are a technical expert in this field, see <a href="https://stackoverflow.com/questions/25297489/accept-http-request-in-r-shiny-application" target="_blank" rel="noopener">this stack overflow</a> post. Furthermore shiny apps can have just one entry-point &#8220;/&#8221;. So you can&#8217;t have another entry-point &#8220;/page2&#8221;. Thus, the e-commerce shop is not possible out of the box in R shiny.</p>
<h4>Solution</h4>
<p>There are multiple solutions to support multiple pages. The one that I am using since a while is the package <a href="https://github.com/ColinFay/brochure" target="_blank" rel="noopener">brochure </a>developed by Colin Fay. It is still in development, so you might encounter some issues but I haven&#8217;t found any major bugs yet. A brochure app consists of a series of pages that are defined by an endpoint/path, a UI and a server function. Thus each page has its own shiny session, its own UI, and its own server! This is important to keep in mind.  A separate session for each page has some advantages but also some disadvantages (e.g. how to pass user data between pages?). A very simple brochureApp looks like this:</p>
<pre class="highlight"><code><span class="n">library(shiny)
library(brochure)

brochureApp</span><span class="p">(</span>
  <span class="c1"># First page</span>
  <span class="n">page</span><span class="p">(</span>
    <span class="n">href</span> <span class="o">=</span> <span class="s2">"/"</span><span class="p">,</span>
    <span class="n">ui</span> <span class="o">=</span> <span class="n">fluidPage</span><span class="p">(</span>
      <span class="n">h1</span><span class="p">(</span><span class="s2">"My first page"</span><span class="p">),</span> 
      <span class="n">plotOutput</span><span class="p">(</span><span class="s2">"plot"</span><span class="p">)</span>
    <span class="p">),</span>
    <span class="n">server</span> <span class="o">=</span> <span class="k">function</span><span class="p">(</span><span class="n">input</span><span class="p">,</span> <span class="n">output</span><span class="p">,</span> <span class="n">session</span><span class="p">){</span>
      <span class="n">output</span><span class="o">$</span><span class="n">plot</span> <span class="o">&lt;-</span> <span class="n">renderPlot</span><span class="p">({</span>
        <span class="n">plot</span><span class="p">(</span><span class="n">iris</span><span class="p">)</span>
      <span class="p">})</span>
    <span class="p">}</span>
  <span class="p">),</span> 
  <span class="c1"># Second page, no server-side function</span>
  <span class="n">page</span><span class="p">(</span>
    <span class="n">href</span> <span class="o">=</span> <span class="s2">"/page2"</span><span class="p">,</span> 
    <span class="n">ui</span> <span class="o">=</span>  <span class="n">fluidPage</span><span class="p">(</span>
      <span class="n">h1</span><span class="p">(</span><span class="s2">"My second page"</span><span class="p">)</span>
    <span class="p">)</span>
  <span class="p">)</span>
<span class="p">)</span></code></pre>
<h4>Donation app</h4>
<p>Coming back to the E-commerce shop example, I have developed an app where one can sponsor me for my open source work on R packages. The app has an integration with Stripe to make a donation and a thank you and error page. When calling Stripe you have to give the two endpoints for these pages and by using brochure, I am able to setup these endpoints. See the app on <a href="https://ginberg.shinyapps.io/donate/" target="_blank" rel="noopener">shinyapps.io</a> and of course I would appreciate it, if you use the app!:-)</p>
<p>The post <a href="https://gerinberg.com/2022/08/11/multi-page-shiny-apps/">Multi page shiny apps</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Speed skating viz updated</title>
		<link>https://gerinberg.com/2021/12/30/speed-skating-viz-updated/</link>
		
		<dc:creator><![CDATA[Ger]]></dc:creator>
		<pubDate>Thu, 30 Dec 2021 14:54:12 +0000</pubDate>
				<category><![CDATA[data viz]]></category>
		<category><![CDATA[beijing]]></category>
		<category><![CDATA[d3js]]></category>
		<category><![CDATA[olympic games]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[speedskating]]></category>
		<guid isPermaLink="false">https://gerinberg.com/?p=1817</guid>

					<description><![CDATA[<p>Speed skating is one of my favorite sports to practice and to watch. This winter the Winter Olympics will be held in Beijing, China.  Will the Dutch be as successful as they were in Sochi and PyeongChang?  How many medals will the Chinese win? Four [&#8230;]</p>
<p>The post <a href="https://gerinberg.com/2021/12/30/speed-skating-viz-updated/">Speed skating viz updated</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="olympic-section-wrapper">
<div id="olympic-introduction">
<p class="bold-start">Speed skating is one of my favorite sports to practice and to watch. This winter the Winter Olympics will be held in Beijing, China.  Will the Dutch be as successful as they were in Sochi and PyeongChang?  How many medals will the Chinese win?</p>
<p><a href="http://gerinberg.com/2017/11/04/speed-skating-olympic-medalists/">Four years ago</a>, I created a visualization about past medal winners at the Olympic Games. I have updated it now with the results of the games in 2018 at PyeongChang.</p>
</div>
</div>
<p>See the <a href="https://gerinberg.com/speedskating">live version</a>. Let me know if you like it or you are interested in some other charts. Enjoy the Winter Olympics!</p>
<p>The post <a href="https://gerinberg.com/2021/12/30/speed-skating-viz-updated/">Speed skating viz updated</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Catchment Area Research Dashboard</title>
		<link>https://gerinberg.com/2021/07/13/catchment-area-research-dashboard/</link>
		
		<dc:creator><![CDATA[Ger]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 08:04:00 +0000</pubDate>
				<category><![CDATA[data viz]]></category>
		<guid isPermaLink="false">https://gerinberg.com/?p=1800</guid>

					<description><![CDATA[<p>In healthcare, the catchment area is the area served by a hospital or medical centre. The Rutgers Cancer Institute of New Jersey has one main goal: to help individuals fight cancer. More specific they are targetting cancer with precision medicine, immunotherapy and clinical trials next to providing advanced cancer care [&#8230;]</p>
<p>The post <a href="https://gerinberg.com/2021/07/13/catchment-area-research-dashboard/">Catchment Area Research Dashboard</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In healthcare, the catchment area is the area served by a hospital or medical centre. The <a href="https://www.cinj.org/" target="_blank" rel="noopener">Rutgers Cancer Institute of New Jersey</a> has one main goal: to help individuals fight cancer. More specific they are targetting cancer with precision medicine, immunotherapy and clinical trials next to providing advanced cancer care to adults and children.</p>
<p>In order to serve patients as best as they can, researchers need as much (quality) data that can serve their purpose.Surveillance, Tracking and Reporting through Informed Data Collection and Engagement (STRIDE) is an interactive data and visualization dashboard. It includes clinical trials enrollment, bio-specimen inventory, tumor registry analytic cases, and catchment area information.</p>
<p>They have approached me to improve the user interface of their dashboard and that&#8217;s what I have been doing! Next to this, I have been helping the person that created the initial dashboard with the following concepts.</p>
<ul>
<li>DRY (Don&#8217;t Repeat Yourself); this is basically re-using of code that you already wrote so you don&#8217;t have to write this code again and you will end up with less code to maintain.</li>
<li>Reproducible results. When I tried to run the initial dashboard, it didn&#8217;t work since some packages were not imported and it was not clear which version of those packages I should use. I have added <a href="https://rstudio.github.io/renv/articles/renv.html" target="_blank" rel="noopener">renv</a> as dependency management, this will add a file to your project containing all packages and their versions. It&#8217;s easy to setup and it&#8217;s worth it!</li>
<li>Interactive charts. The initial charts were made with the package ggplot2. This is a nice package for data visualization and it offers many charts and display options. But, it&#8217;s not interactive and that&#8217;s what most people want and expect in a dashboard.</li>
</ul>
<p>See below for some screenshots of this app.</p>
<p><div class="envira-gallery-feed-output"><img decoding="async" class="envira-gallery-feed-image" src="https://gerinberg.com/wp-content/uploads/2021/10/dashboard1-1024x522-640x480.png" title="dashboard1" alt="" /></div></p>
<p>The post <a href="https://gerinberg.com/2021/07/13/catchment-area-research-dashboard/">Catchment Area Research Dashboard</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>CITO public analysis</title>
		<link>https://gerinberg.com/2021/03/12/cito-public-analysis/</link>
		
		<dc:creator><![CDATA[Ger]]></dc:creator>
		<pubDate>Fri, 12 Mar 2021 07:24:00 +0000</pubDate>
				<category><![CDATA[data analysis]]></category>
		<category><![CDATA[data viz]]></category>
		<guid isPermaLink="false">https://gerinberg.com/?p=1750</guid>

					<description><![CDATA[<p>CITO is an institute in the Netherlands that support governments and schools so that they can develop world-class testing and monitoring systems to complete their educational programs. They have a lot of data regarding testing scores and it could be interesting to combine this data [&#8230;]</p>
<p>The post <a href="https://gerinberg.com/2021/03/12/cito-public-analysis/">CITO public analysis</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.cito.nl/" target="_blank" rel="noopener">CITO</a> is an institute in the Netherlands that support governments and schools so that they can develop world-class testing and monitoring systems to complete their educational programs. They have a lot of data regarding testing scores and it could be interesting to combine this data with public data. For example, are testing scores of children living in deprived areas worse than average?</p>
<h5>Exploratory Analysis</h5>
<p>Exploratory data analysis (EDA) is used by data scientists to analyze and investigate data sets and summarize their main characteristics. This is often done by using data visualization methods. The main purpose of EDA is to help look at data before making any assumptions. For me it&#8217;s one of the nicest parts of the data science! Since you don&#8217;t know yet what&#8217;s in the data and there will always be surprises. It&#8217;s like you are on holiday and exploring the area that you seeing for the first time:-)</p>
<p>For example, is a certain variable in the data normally distributed or not? Is there any missing data or duplicated values? In my experience, yes in most cases, there is missing and duplicated data. We need to fix these issues before we can do the real analysis. This phase is called data cleaning, you might have heard about this before.</p>
<h5>Representativeness Analyses</h5>
<p>In general, a representative sample is a group or set chosen from a larger statistical population that adequately replicates the larger group according to whatever characteristic or quality is under study. In case of CITO, we like to know if the sample data set has more or less the same characteristics regarding scores.  For example, are the average and standard deviation of the sample data set close to the ones of the total data set. I have plotted the distributions of the 2 data sets in a single chart, in order to compare them. In the subtitle one can find the average, standard deviation and the median.</p>
<p>Below you can find some of the charts I made for both EDA and the representativeness Analyses. The code is available in a public repository on <a href="https://github.com/ginberg/cito" target="_blank" rel="noopener">github</a>. It can be run using a docker container, R and <a href="https://rstudio.github.io/renv/articles/renv.html" target="_blank" rel="noopener">renv</a> for library management.</p>
<p><div class="envira-gallery-feed-output"><img decoding="async" class="envira-gallery-feed-image" src="https://gerinberg.com/wp-content/uploads/2021/06/ex_scores-1-640x480.png" title="Exploratory: scores and score per sex" alt="" /></div></p>
<p>The post <a href="https://gerinberg.com/2021/03/12/cito-public-analysis/">CITO public analysis</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>My Electricity Balance</title>
		<link>https://gerinberg.com/2020/10/14/my-electricity-balance/</link>
		
		<dc:creator><![CDATA[Ger]]></dc:creator>
		<pubDate>Wed, 14 Oct 2020 09:02:38 +0000</pubDate>
				<category><![CDATA[data viz]]></category>
		<category><![CDATA[electricity]]></category>
		<category><![CDATA[solarpanels]]></category>
		<guid isPermaLink="false">https://gerinberg.com/?p=1530</guid>

					<description><![CDATA[<p>Since the beginning of this year I have solar panels on the roof of my house. The electricity these are producing should be more than enough than I am currently using. I bought a bit more solar panels since I expect to have an electric [&#8230;]</p>
<p>The post <a href="https://gerinberg.com/2020/10/14/my-electricity-balance/">My Electricity Balance</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Since the beginning of this year I have solar panels on the roof of my house. The electricity these are producing should be more than enough than I am currently using. I bought a bit more solar panels since I expect to have an electric car in a couple of years.</p>
<p>My <a href="https://www.samenom.nl/" target="_blank" rel="noopener noreferrer">energy provider</a> is giving me my monthly usage and production. Based on this I have created the visual below. It states for each month the consumption (red) vs the production (blue). The electricity meter is installed at March 1 so there is no data before that date. The solar panels have been installed in May. So far this year the numbers are looking very good, since the solar panels produce the most in spring and summer. In the coming months the bars will be more red! See below for my current balance or have a look at <a href="https://gerinberg.com/energy/" target="_blank" rel="noopener noreferrer">my energy</a> for the current status.</p>
<p></p>
<div class="envira-gallery-feed-output"><img decoding="async" class="envira-gallery-feed-image" src="https://gerinberg.com/wp-content/uploads/2020/12/usage-550x400.png" title="My Electricity Balance" alt="My Electricity Balance" /></div>

<p>The post <a href="https://gerinberg.com/2020/10/14/my-electricity-balance/">My Electricity Balance</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>eRum lightning talk speaker</title>
		<link>https://gerinberg.com/2020/06/16/erum-lightning-talk-speaker/</link>
		
		<dc:creator><![CDATA[Ger]]></dc:creator>
		<pubDate>Tue, 16 Jun 2020 13:44:44 +0000</pubDate>
				<category><![CDATA[data viz]]></category>
		<category><![CDATA[canvasXpress]]></category>
		<category><![CDATA[erum]]></category>
		<guid isPermaLink="false">https://gerinberg.com/?p=1505</guid>

					<description><![CDATA[<p>This week, the European R Users Meeting (ERUM) is happening. It's a biennial conference that brings the R User Community together and this year it would be held in Milan. I am excited to give a lightning talk about "Reproducible Data Visualization with CanvasXpress"!</p>
<p>The post <a href="https://gerinberg.com/2020/06/16/erum-lightning-talk-speaker/">eRum lightning talk speaker</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<p>This week, the European R Users Meeting (eRum) is happening. It&#8217;s a biennial conference that brings the R User Community together and this year it would be held in Milan. Because of covid-19, the organizers decided to do the whole conference online. I am very happy that the conference didn&#8217;t have to be cancelled, though it&#8217;s too bad we can&#8217;t visit Milan. Furthermore I am excited that I will give a lightning talk about &#8220;Reproducible Data Visualization with CanvasXpress&#8221;!</p>
<p>Since I am working with <a href="https://canvasxpress.org/index.html" target="_blank" rel="noopener noreferrer">CanvasXpress</a> since a couple of years, I know it quite well. I wrote about it before in <a href="https://gerinberg.com/2018/07/21/canvasxpress/" target="_blank" rel="noopener noreferrer">this blog</a>. Many times I have been surprised by the amount of functionality that the library provides. Especially all the options that are available after the chart has been created. There&#8217;s a &#8216;Reproducible Research&#8217; sub-menu which has been extended lately with a very cool replay option.</p>
<h4>Replay</h4>
<p>When you make changes to a rendered plot, canvasXpress keeps a history of these changes. You can reset the chart back to it&#8217;s original state and replay the previous changes that you have made using the replay button. This button is the 2nd leftmost button in the top menu bar, see the screenshot below. It&#8217;s only available if you have made any changes to the plot.</p>
<p><a href="https://gerinberg.com/wp-content/uploads/2020/06/replay.png"><img decoding="async" class="size-medium wp-image-1510" src="https://gerinberg.com/wp-content/uploads/2020/06/replay-300x108.png" alt="" width="300" height="108" srcset="https://gerinberg.com/wp-content/uploads/2020/06/replay-300x108.png 300w, https://gerinberg.com/wp-content/uploads/2020/06/replay-768x277.png 768w, https://gerinberg.com/wp-content/uploads/2020/06/replay-830x300.png 830w, https://gerinberg.com/wp-content/uploads/2020/06/replay-230x83.png 230w, https://gerinberg.com/wp-content/uploads/2020/06/replay-350x126.png 350w, https://gerinberg.com/wp-content/uploads/2020/06/replay-480x173.png 480w, https://gerinberg.com/wp-content/uploads/2020/06/replay.png 1005w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>The replay creates a new window that displays all the user actions step by step. For each step, more information is available when selecting that step. In the example above, I have removed the x-axis on top in step 1. This relates to the property &#8216;xAxisShow&#8217;.</p>
<p>What if you would like to share this replay with your coworker? Well, you can download the chart in PNG format using the camera icon in the top menu. The downloaded image also contains the user actions. So if your coworker is importing your canvasXpress PNG, he/she can do the same replay as you. Pretty nice huh?</p>
<p>I will give a demonstration about the replay functionality in my presentation this Friday. Please have a look at the eRum <a href="https://2020.erum.io/program/" target="_blank" rel="noopener noreferrer">schedule</a> for the exact time and (online) location.</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</div></div>
<p>The post <a href="https://gerinberg.com/2020/06/16/erum-lightning-talk-speaker/">eRum lightning talk speaker</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Praetorian Covid flexdashboard</title>
		<link>https://gerinberg.com/2020/05/02/praetorian-covid-flexdashboard/</link>
		
		<dc:creator><![CDATA[Ger]]></dc:creator>
		<pubDate>Sat, 02 May 2020 13:44:00 +0000</pubDate>
				<category><![CDATA[data viz]]></category>
		<category><![CDATA[covid19]]></category>
		<category><![CDATA[flexdashboard]]></category>
		<guid isPermaLink="false">https://gerinberg.com/?p=1443</guid>

					<description><![CDATA[<p>Praetorian Covid is a clinical trial that is executed in the fight against covid-19. As you probably heard, there are many trials going on at this moment. On this clinical trials website you can find them. Praetorian Covid is executed by the Radboud University of [&#8230;]</p>
<p>The post <a href="https://gerinberg.com/2020/05/02/praetorian-covid-flexdashboard/">Praetorian Covid flexdashboard</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Praetorian Covid is a clinical trial that is executed in the fight against covid-19. As you probably heard, there are many trials going on at this moment. On <a href="https://clinicaltrials.gov/ct2/show/NCT04335786" target="_blank" rel="noopener noreferrer">this clinical trials</a> website you can find them. Praetorian Covid is executed by the Radboud University of Nijmegen and it&#8217;s focusing on the medicine Valsartan. This is a medicine that is normally used to treat high blood pressure and heart failure. The purpose of the trials is to test if Valsartan prevents Acute Respiratory Distress Syndrome which can occur because of covid-19. On the website of the Radboud University there&#8217;s an <a href="https://www.radboudumc.nl/nieuws/2020/kunnen-hoge-bloeddruk-medicijnen-ernstige-complicaties-door-corona-voorkomen" target="_blank" rel="noopener noreferrer">article in Dutch</a>.</p>
<p>Patients that participate in the study are put in either a placebo group or the Valsartan group. Next, over the course of time, their hospital status is checked. Do they need mechanical ventilation, are they on the IC or have they lost the battle against the virus. For every patient this data is updated daily. Castor EDC is supporting this trial by giving the Radboud University the possibility to store their data in the Castor EDC web application. They asked me to develop a dashboard to show statistics about the 2 study groups. That&#8217;s my small contribution to this project:)</p>
<p>The dashboard is getting the data by using the Castor EDC API.&nbsp; The frontend is created with the <a href="https://rmarkdown.rstudio.com/flexdashboard/" target="_blank" rel="noopener noreferrer">flexdashboard</a> package in R. It&#8217;s showing a table with the statistics per group and for each group a plot in time of the number of patients that are either on the IC, need mechanical ventilation or have died. Since the trial has recently started, I can&#8217;t share results yet unfortunately. Hope to bring some good news about this later on!</p>
<p></p>

<p>The post <a href="https://gerinberg.com/2020/05/02/praetorian-covid-flexdashboard/">Praetorian Covid flexdashboard</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Corona-virus dashboard</title>
		<link>https://gerinberg.com/2020/02/18/corona-virus-dashboard/</link>
		
		<dc:creator><![CDATA[Ger]]></dc:creator>
		<pubDate>Tue, 18 Feb 2020 16:17:20 +0000</pubDate>
				<category><![CDATA[data viz]]></category>
		<category><![CDATA[shiny]]></category>
		<category><![CDATA[canvasXpress]]></category>
		<category><![CDATA[johnhopkins]]></category>
		<category><![CDATA[periscope]]></category>
		<category><![CDATA[r-shiny]]></category>
		<guid isPermaLink="false">https://gerinberg.com/?p=1404</guid>

					<description><![CDATA[<p>There is still quite some uncertainty about the corona-virus (Covid-19). Will it cause a pandemic? How deadly is it? Does it spread to other people easily? What is the length of the incubation period? It has already killed more people than SARS did. To answer [&#8230;]</p>
<p>The post <a href="https://gerinberg.com/2020/02/18/corona-virus-dashboard/">Corona-virus dashboard</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>There is still quite some uncertainty about the corona-virus (Covid-19). Will it cause a pandemic? How deadly is it? Does it spread to other people easily? What is the length of the incubation period?</p>
<p>It has already killed more people than <a href="https://www.nytimes.com/2020/02/09/world/asia/coronavirus-china.html#link-28cece0e" target="_blank" rel="noopener noreferrer">SARS</a> did. To answer the question about the growth of the corona-virus I made a dashboard. It displays the amount of people that:</p>
<ul>
<li>are confirmed to have the virus (Confirmed)</li>
<li>have recovered from it (Recovered)</li>
<li>have died because of it (Deaths)</li>
</ul>
<p>The first tab displays the number of people for those categories over time while the second tab displays the number of people per location. In the left sidebar, the total amount of Confirmed, Recovered and Deaths is shown. However, you can also filter by Country or Region.</p>
<p>Looking at the Confirmed cases, there is a huge spike around February 12th. This is caused by the fact that also patients that have symptoms but are not tested positive (yet) are added to the <a href="https://time.com/5783401/covid19-hubei-cases-classification/" target="_blank" rel="noopener noreferrer">reported cases</a>.</p>
<p>Around, 22 February, there&#8217;s a little spike because of new cases found in Italy and South Korea. Let&#8217;s hope the numbers are going down to zero soon!</p>
<p>View the <a href="https://shiny.gerinberg.com/coronavirus/" target="_blank" rel="noopener noreferrer">live dashboard</a></p>
<p><a href="https://gerinberg.com/wp-content/uploads/2020/02/corona_virus.png"><img decoding="async" class="alignnone size-medium wp-image-1410" src="https://gerinberg.com/wp-content/uploads/2020/02/corona_virus-300x149.png" alt="" width="300" height="149" srcset="https://gerinberg.com/wp-content/uploads/2020/02/corona_virus-300x149.png 300w, https://gerinberg.com/wp-content/uploads/2020/02/corona_virus-1024x507.png 1024w, https://gerinberg.com/wp-content/uploads/2020/02/corona_virus-768x381.png 768w, https://gerinberg.com/wp-content/uploads/2020/02/corona_virus-1536x761.png 1536w, https://gerinberg.com/wp-content/uploads/2020/02/corona_virus-830x411.png 830w, https://gerinberg.com/wp-content/uploads/2020/02/corona_virus-230x114.png 230w, https://gerinberg.com/wp-content/uploads/2020/02/corona_virus-350x173.png 350w, https://gerinberg.com/wp-content/uploads/2020/02/corona_virus-480x238.png 480w, https://gerinberg.com/wp-content/uploads/2020/02/corona_virus.png 1978w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>The post <a href="https://gerinberg.com/2020/02/18/corona-virus-dashboard/">Corona-virus dashboard</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Periscope Upgrade &#8211; shinydashboardPlus</title>
		<link>https://gerinberg.com/2020/01/11/periscope-upgrade/</link>
		
		<dc:creator><![CDATA[Ger]]></dc:creator>
		<pubDate>Sat, 11 Jan 2020 11:23:01 +0000</pubDate>
				<category><![CDATA[data viz]]></category>
		<category><![CDATA[periscope]]></category>
		<category><![CDATA[shinydashboardPlus]]></category>
		<guid isPermaLink="false">https://gerinberg.com/?p=1379</guid>

					<description><![CDATA[<p>In one of my last blog posts I talked about Periscope which is an R package to assist with creating scalable shiny applications. Originally it was shipped with the standard shinydashboard package but recently I have upgraded it (CRAN) so it uses shinydashboardPlus. This last [&#8230;]</p>
<p>The post <a href="https://gerinberg.com/2020/01/11/periscope-upgrade/">Periscope Upgrade &#8211; shinydashboardPlus</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In one of my last <a href="https://gerinberg.com/2019/03/06/interactive-gene-explorer/" target="_blank" rel="noopener noreferrer">blog posts</a> I talked about <a href="https://github.com/neuhausi/periscope" target="_blank" rel="noopener noreferrer">Periscope</a> which is an R package to assist with creating scalable shiny applications. Originally it was shipped with the standard shinydashboard package but recently I have upgraded it (<a href="https://cran.r-project.org/web/packages/periscope/index.html" target="_blank" rel="noopener noreferrer">CRAN</a>) so it uses shinydashboardPlus. This last package offers some nice features like a right sidebar and the possibility to add inputs to the header bar. These are the main changes in the release:</p>
<h5>Right sidebar</h5>
<p>Many shiny apps are using the shinydashboard package which offers a left sidebar and next to it the main body of the application. When adding lots of inputs the sidebar can get full, so in some cases it&#8217;s convenient to have a right sidebar as well. A right sidebar is one of the nice features of the shinydashboardPlus package.</p>
<h5>Reset button</h5>
<p>The periscope package comes by default with a reset button. This button resets your application to the state at startup. Since it&#8217;s not useful for all apps, you can disable it now using the resetbutton parameter in the function create_new_application().</p>
<h5>Periscope sample applications</h5>
<p>Sample shiny application demonstrating the functionality of the periscope framework. This is very useful if you are starting with the periscope package and want to explore the functionality. The screenshot below is from a sample application with a right sidebar. See <a href="http://periscopeapps.org:3838/" target="_blank" rel="noopener noreferrer">sample apps</a> to view the apps live on the periscope server.</p>
<p><a href="https://gerinberg.com/wp-content/uploads/2020/01/sample_app_right_sidebar.png"><img decoding="async" class="alignnone size-medium wp-image-1383" src="https://gerinberg.com/wp-content/uploads/2020/01/sample_app_right_sidebar-300x155.png" alt="periscope upgrade" width="300" height="155" srcset="https://gerinberg.com/wp-content/uploads/2020/01/sample_app_right_sidebar-300x155.png 300w, https://gerinberg.com/wp-content/uploads/2020/01/sample_app_right_sidebar-1024x529.png 1024w, https://gerinberg.com/wp-content/uploads/2020/01/sample_app_right_sidebar-768x396.png 768w, https://gerinberg.com/wp-content/uploads/2020/01/sample_app_right_sidebar-1536x793.png 1536w, https://gerinberg.com/wp-content/uploads/2020/01/sample_app_right_sidebar-830x428.png 830w, https://gerinberg.com/wp-content/uploads/2020/01/sample_app_right_sidebar-230x119.png 230w, https://gerinberg.com/wp-content/uploads/2020/01/sample_app_right_sidebar-350x181.png 350w, https://gerinberg.com/wp-content/uploads/2020/01/sample_app_right_sidebar-480x248.png 480w, https://gerinberg.com/wp-content/uploads/2020/01/sample_app_right_sidebar.png 1974w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>The post <a href="https://gerinberg.com/2020/01/11/periscope-upgrade/">Periscope Upgrade &#8211; shinydashboardPlus</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Interactive Gene Explorer</title>
		<link>https://gerinberg.com/2019/03/06/interactive-gene-explorer/</link>
					<comments>https://gerinberg.com/2019/03/06/interactive-gene-explorer/#comments</comments>
		
		<dc:creator><![CDATA[Ger]]></dc:creator>
		<pubDate>Wed, 06 Mar 2019 03:42:36 +0000</pubDate>
				<category><![CDATA[data analysis]]></category>
		<category><![CDATA[data viz]]></category>
		<guid isPermaLink="false">https://gerinberg.com/?p=1327</guid>

					<description><![CDATA[<p>Since almost 2 years I am working for a global Bio pharmaceutical company. Together with researchers, I am working on applications to analyze (sometimes big) data to find medicines for patients with serious and life-threatening diseases. As you can imagine, the work is confidential and [&#8230;]</p>
<p>The post <a href="https://gerinberg.com/2019/03/06/interactive-gene-explorer/">Interactive Gene Explorer</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Since almost 2 years I am working for a global Bio pharmaceutical company. Together with researchers, I am working on applications to analyze (sometimes big) data to find medicines for patients with serious and life-threatening diseases. As you can imagine, the work is confidential and so I am not able to share data or results with other people. However, there are a couple of initiatives to open-source some of the packages that are developed within the company, which is awesome! The <a href="https://blog.rstudio.com/2019/01/07/first-shiny-contest/" target="_blank" rel="noopener noreferrer">Shiny contest</a> gave me a good opportunity to display some of these packages in a Shiny application.</p>
<h5>Periscope</h5>
<p><a href="https://github.com/neuhausi/periscope" target="_blank" rel="noopener noreferrer">Periscope</a> is a new R package which provides a predefined but flexible template for new Shiny applications with a default dashboard layout. Furthermore it provides <span style="font-family: 'Source Sans Pro', sans-serif;">user alerts, a nice busy indicator, application reset and logging features. </span></p>
<p><span style="font-family: 'Source Sans Pro', sans-serif;">One of the most important features of the Shiny applications created with this framework is the separation by file of functionality that exists in one of the three Shiny <strong>scopes.</strong> These scopes are: global, server-global, and server-local. The framework forces application developers to consciously consider scoping in Shiny applications by making scoping distinctions very clear without interfering with normal application development. Scoping consideration is important for performance and scaling.  This is critical when working with large datasets and/or across many users. In addition to providing a template application, the framework also contains a number of convenient modules. </span></p>
<ul>
<li>(multi)file download button module</li>
<li>downloadable table module.</li>
</ul>
<h5>CanvasXpress</h5>
<p>The plots in the application are created using <a href="https://canvasxpress.org/html/index.html" target="_blank" rel="noopener noreferrer">CanvasXpress</a>, which is a package for (interactive) data visualization especially for reproducible research.  It supports a large number of visualizations to display scientific and non-scientific data which includes: Area, AreaLine, Bar, BarLine, Boxplot, Bubble, Candlestick, Chord, Circular, Contour, Correlation, Density, Donnut, DotLine, Dotplot, Genome, Heatmap, Histogram, Kaplan-Meier, Layout, Line, Map, Network, NonLinear-Fit, Oncoprint, ParallelCoordinates, Pie, Radar, Remote-Graphs, Sankey, Scatter2D, Scatter3D, ScatterBubble2D, Stacked, StackedLine, StackedPercent, StackedPercentLine, Sunburst, TagCloud, Tree, Treemap, Venn, Video, Violin. This <a href="https://blog.dominodatalab.com/large-visualizations-canvasxpress/" target="_blank" rel="noopener noreferrer">blogpost</a> gives a good overview on how to get started with CanvasXpress.</p>
<p>View the <a href="https://ginberg.shinyapps.io/gene_explorer/" target="_blank" rel="noopener noreferrer">Interactive Gene Explorer</a> or the source code on <a href="https://github.com/ginberg/gene_explorer" target="_blank" rel="noopener noreferrer">github</a>.</p>
<p><a href="https://gerinberg.com/wp-content/uploads/2019/03/gene_explorer.png"><img loading="lazy" decoding="async" class="alignnone size-medium wp-image-1328" src="https://gerinberg.com/wp-content/uploads/2019/03/gene_explorer-300x108.png" alt="Gene Explorer" width="300" height="108" srcset="https://gerinberg.com/wp-content/uploads/2019/03/gene_explorer-300x108.png 300w, https://gerinberg.com/wp-content/uploads/2019/03/gene_explorer-768x277.png 768w, https://gerinberg.com/wp-content/uploads/2019/03/gene_explorer-1024x369.png 1024w, https://gerinberg.com/wp-content/uploads/2019/03/gene_explorer-830x299.png 830w, https://gerinberg.com/wp-content/uploads/2019/03/gene_explorer-230x83.png 230w, https://gerinberg.com/wp-content/uploads/2019/03/gene_explorer-350x126.png 350w, https://gerinberg.com/wp-content/uploads/2019/03/gene_explorer-480x173.png 480w, https://gerinberg.com/wp-content/uploads/2019/03/gene_explorer.png 1969w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p>The post <a href="https://gerinberg.com/2019/03/06/interactive-gene-explorer/">Interactive Gene Explorer</a> appeared first on <a href="https://gerinberg.com">Ger Inberg</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://gerinberg.com/2019/03/06/interactive-gene-explorer/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
