<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/12-visualizations-to-show-a-single-number/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://www.displayr.com/12-visualizations-to-show-a-single-number/?utm_medium=Feed&utm_source=Syndication"> R – Displayr</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>Infographics, dashboards, and reports often need to highlight or visualize a single number. But how do you highlight a single number so that it has an impact and looks good? It can be a big challenge to make a lonely, single number look great. In this post, I show 12 different ways of representing a single number. Most of these visualizations have been created automatically using R.</p>
<hr>
<h2><span>When to create a visualization to represent a single number</span></h2>
<p>There are a number of situations in which it can be advantageous to create a visualization to represent a single number:</p>
<ul>
<li>To communicate with less numerate viewers/readers;</li>
<li>Infographics and dashboards commonly use one important number;</li>
<li>To attract the attention of distracted or busy viewers/readers;</li>
<li>To add some humanity or “color”, to create an emotional connection;</li>
<li>Or to increase the <em>redundancy</em> of the presentation (see <a rel="nofollow" href="https://www.displayr.com/improve-the-qual%E2%80%A6using-redundancy/" target="_blank">Improve the Quality of Data Visualizations Using Redundancy</a>).</li>
</ul>
<p> </p>
<hr>
<h2><span>Option 1: Standard text formatting: font, size, style</span></h2>
<p>Sometimes the plain text is the best option. Make fonts big and simple so they stand out.</p>
<p> </p>
<p><span>669 people died</span></p>
<p> </p>
<hr>
<h2><span>Option 2: Informative formatting</span></h2>
<p><span>Colors</span>, <strong>bolding</strong>, <em>emphasis</em>, and other formatting options can be used to draw attention to figures and to communicate additional information. For example, the red font could draw attention to low results. Example: <span>Sales declined by</span> <span>23%.</span></p>
<p>You can do this in a sentence or in a visualization, such as in the bar chart below, where color is used to encode statistical testing results.</p>
<p> </p>
<p><img sizes="(max-width: 614px) 100vw, 614px" src="https://i0.wp.com/www.displayr.com/wp-content/uploads/2017/09/BarChartWithNumbers-1024x230.png?w=450&ssl=1" alt="Informative formatting" class="wp-image-3484" data-recalc-dims="1"></p>
<p> </p>
<hr>
<p>And you could also use informative formatting via a colored background for numbers, as in the visual confection below. In this instance, traffic-light coloring indicates the relative levels of performance of different departments in a supermarket.</p>
<p> </p>
<p><img sizes="(max-width: 506px) 100vw, 506px" src="https://i1.wp.com/www.displayr.com/wp-content/uploads/2017/09/TrafficLightConfection.png?w=450&ssl=1" alt="Visualization to illustrate a single number" class="wp-image-3478" data-recalc-dims="1"></p>
<p> </p>
<hr>
<h2><span>Option 3: Pie charts</span></h2>
<p>Proportions are often illustrated using pie charts with <a rel="nofollow" href="https://www.displayr.com/why-pie-charts-are-better-than-bar-charts/" target="_blank">varying degrees of success</a>. They can be particularly elegant for displaying single numbers that are proportions.</p>
<p><img sizes="(max-width: 423px) 100vw, 423px" src="https://i2.wp.com/www.displayr.com/wp-content/uploads/2017/09/CokeRemainingPie.png?resize=423%2C233&ssl=1" alt="Pie chart proportions" class="wp-image-3483" data-recalc-dims="1"></p>
<p> </p>
<hr>
<h2><span>Option 4: Donut charts</span></h2>
<p>Similarly with donut charts. It’s just a matter of taste.</p>
<h2><img sizes="(max-width: 401px) 100vw, 401px" src="https://i2.wp.com/www.displayr.com/wp-content/uploads/2017/09/DonutRemaining-1.png?resize=401%2C214&ssl=1" alt="Donut chart" class="wp-image-3486" data-recalc-dims="1"></h2>
<p> </p>
<hr>
<h2><span>Option 5: Portion of an image</span></h2>
<p>The two-category pie chart and donut chart are special cases of a more general strategy, which is to show a portion of an image.</p>
<p><iframe src="https://embedded.azureedge.net/75668/233481/d4b1d6d2-30e0-4856-86fa-4ca46511031f.html?v=29062-354f82b68e655246890" width="321.8506" height="305"></iframe></p>
<p> </p>
<hr>
<h2><span>Option 6:  Overlaid images</span></h2>
<p>A twist on showing a portion of an image is to proportionally color an image.</p>
<p> </p>
<p><img sizes="(max-width: 197px) 100vw, 197px" src="https://i0.wp.com/www.displayr.com/wp-content/uploads/2017/09/PepsiMarketShare.png?resize=197%2C353&ssl=1" alt="Visualization to illustrate a single number" class="wp-image-3480" data-recalc-dims="1">  <img sizes="(max-width: 379px) 100vw, 379px" src="https://i1.wp.com/www.displayr.com/wp-content/uploads/2017/09/TrumpApprval.png?resize=379%2C359&ssl=1" alt="Visualization to illustrate a single number" class="wp-image-3479" data-recalc-dims="1">   <img sizes="(max-width: 146px) 100vw, 146px" src="https://i1.wp.com/www.displayr.com/wp-content/uploads/2017/09/AverageAge.png?resize=146%2C352&ssl=1" alt="Visualization to illustrate a single number" class="wp-image-3481" data-recalc-dims="1"></p>
<p> </p>
<p>A common, but misleading, criticism of overlaid image visualizations and all the <em>pictograph </em>type of visualizations is that they are imprecise at best, and innumerate at worst. The three visualizations above have all been created to illustrate this point. The one on the left is not too bad. The President Trump approval visualization can readily be criticized in that the actual area shaded in blue is less than 37%. This is due to the greater amount of whitespace over the shoulders. Particularly problematic is the age visualization. This implicitly compares a number, 37, against some unknown and silly benchmark implied by the top of the image.</p>
<p>While such criticisms are technically correct, they are misleading. Consider the “worst” of the visualizations, which shows the average age. The purpose of the visualization is simply to communicate to the viewer that the average age figure is in some way low. How low? This is communicated by the number at the base. If the actual correct number is shown, there is little prospect of the viewer being misled. However, showing a number without the visualization runs the risk that the viewer fails to notice the point at all. This leads to a much higher error.</p>
<p>Furthermore, there are many contexts in which precision is not even important. How often is half a glass of wine actually precisely half a glass?</p>
<p> </p>
<hr>
<h2><span>Option 7:  Countable pictographs</span></h2>
<p>While all pictographs have a bad reputation, in the case of the countable pictograph, it is quite undeserved. Countable pictographs achieve <a rel="nofollow" href="https://www.displayr.com/improve-the-quality-of-data-visualizations-using-redundancy/" target="_blank">redundancy</a> and thus likely improve the accuracy with which the underlying data is understood by the viewer.</p>
<p> </p>
<p><img sizes="(max-width: 490px) 100vw, 490px" src="https://i0.wp.com/www.displayr.com/wp-content/uploads/2017/09/Diaper.png?w=450&ssl=1" alt="Visualization to show a single number" class="wp-image-3485" data-recalc-dims="1"></p>
<p> </p>
<hr>
<h2><span>Option 8: Uncountable pictographs</span></h2>
<p>The goal of the uncountable pictograph is to suggest, in a graphical way, “big”. It is often most useful when next to a comparable countable pictograph.</p>
<p> </p>
<p><iframe src="https://embedded.azureedge.net/75668/233481/19ad43f7-fde2-4653-995c-16c393d6bce9.html?v=29062-354f82b68e-997333177" width="450" height="233"></iframe></p>
<p> </p>
<hr>
<h2><span>Option 9: Dials, gauges, and thermometers</span></h2>
<p> </p>
<p><iframe width="217.616" src="https://embedded.azureedge.net/75668/233481/e8581bef-04e1-4538-8276-02ba36a93ccb.html?v=29062-354f82b68e1782534832" height="265.7431"></iframe></p>
<p>This data is from a study by the Pew Research Center. Go to the <a rel="nofollow" href="http://www.people-press.org/2016/06/22/partisanship-and-political-animosity-in-2016/" target="_blank">original report for a better visualization</a>, which uses a thermometer.</p>
<hr>
<h2><span>Option 10: Physical representations</span></h2>
<p>This photo, from <a rel="nofollow" href="https://www.theguardian.com/uk-news/poll/2014/nov/06/display-poppies-tower-of-london-stay" target="_blank">The Guardian</a>, shows 888,246 ceramic red poppies installed around the Tower of London. Each poppy represents a British or Colonial serviceman killed in World War I. It is the same basic idea as the uncountable pictograph but on a much grander scale.</p>
<p> </p>
<p><img alt="Visualization to illustrate a big number" src="https://i0.wp.com/static.guim.co.uk/sys-images/Guardian/Pix/pictures/2014/11/6/1415279815170/poppies-london-witness-013.jpg?w=450&ssl=1" data-recalc-dims="1"></p>
<p> </p>
<hr>
<h2><span>Option 11: Artwork/graphic design</span></h2>
<p> </p>
<p><img sizes="(max-width: 459px) 100vw, 459px" src="https://i2.wp.com/www.displayr.com/wp-content/uploads/2017/09/Numbers.png?w=450&ssl=1" alt="Three numbers made too look good with design" class="wp-image-3475" data-recalc-dims="1"></p>
<p> </p>
<hr>
<h2><span>Option 12: Evocative collages</span></h2>
<p>And finally the most common of all approaches in marketing reporting is to find an image or images that in some way represent, or evoke, something relevant to the number.</p>
<p> </p>
<p><img sizes="(max-width: 494px) 100vw, 494px" src="https://i1.wp.com/www.displayr.com/wp-content/uploads/2017/09/CokeNumber.png?w=450&ssl=1" alt="Visualization to convey a single number" class="wp-image-3476" data-recalc-dims="1"></p>
<hr>
<h2><span>Software</span></h2>
<p>You can only create the visualizations in option 2 easily in Displayr. The visualizations in options 3 through 8 were all created using the open-source GitHub R packages <span><a rel="nofollow" href="https://github.com/Displayr" target="_blank">Displayr</a></span><span>/</span><a data-pjax="#js-repo-pjax-container" rel="nofollow" href="https://github.com/Displayr/rhtmlPictographs" target="_blank">rhtmlPictographs</a> and <span><a rel="nofollow" href="https://github.com/Displayr" target="_blank">Displayr</a></span><span>/</span><a data-pjax="#js-repo-pjax-container" rel="nofollow" href="https://github.com/Displayr/flipPictographs" target="_blank">flipPictographs</a>, which were created by my colleagues Kyle and Carmen.</p>
<hr>
<h2><span>Create your own visualizations</span></h2>
<p>Everyone can access the Displayr document used to <a rel="nofollow" href="https://app.displayr.com/Try/Number" target="_blank">create these visualizations here</a>. To modify the visualizations with your own data, click on each visualization and either change the <strong>Inputs </strong>or modify the underlying R code (<strong>Properties ></strong> <span>R CODE</span>).</p>
<hr>
<h2><span>Acknowledgments</span></h2>
<p>Google’s gauge inspired the gauge in this post. I haven’t been able to find any copyright information for the beautiful Coca-cola photo. So, if you know where it is from, please tell me!</p>
<p> </p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://www.displayr.com/12-visualizations-to-show-a-single-number/?utm_medium=Feed&utm_source=Syndication"> R – Displayr</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/hSrmVR6UhGY" height="1"></a></div>