<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ggplot2 on Data Visualizations in R</title>
    <link>/tags/ggplot2/</link>
    <description>Recent content in Ggplot2 on Data Visualizations in R</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Tue, 05 May 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="/tags/ggplot2/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Is your plot colorblind friendly?</title>
      <link>/2026/05/05/is-your-plot-colorblind-friendly/</link>
      <pubDate>Tue, 05 May 2026 00:00:00 +0000</pubDate>
      <guid>/2026/05/05/is-your-plot-colorblind-friendly/</guid>
      <description>&lt;p&gt;You can &lt;a href=&#34;#custom&#34;&gt;skip to the bottom&lt;/a&gt; to just see the code.&lt;/p&gt;&#xA;&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;/h1&gt;&#xA;&lt;p&gt;In a &lt;a href=&#34;https://meaghanwetherell.netlify.app/2026/04/27/why-ggplot2-s-default-color-palette-is-bad/&#34;&gt;previous post&lt;/a&gt; I talked a lot about why &lt;code&gt;ggplot2&lt;/code&gt; has a terrible default color palette. In this post, I&amp;rsquo;ll show you how to use the &lt;code&gt;colorBlindness&lt;/code&gt; package to quickly and easily determine if your particular color palette is equally garbage.&lt;/p&gt;&#xA;&lt;h1 id=&#34;packages&#34;&gt;Packages&lt;/h1&gt;&#xA;&lt;pre&gt;&lt;code class=&#34;language-r&#34;&gt;library(ggplot2) #graphics&#xA;library(ggplotify) # to convert to ggplot2&#xA;library(colorBlindness) #pretty self explanatory I&#39;d say&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;h1 id=&#34;why-colorblindness&#34;&gt;Why colorBlindness&lt;/h1&gt;&#xA;&lt;p&gt;There are plenty of other packages that simulate colorblindness in R. &lt;code&gt;colorBlindr&lt;/code&gt;, &lt;code&gt;dichromat&lt;/code&gt;, and &lt;code&gt;colorblindcheck&lt;/code&gt; come to mind. I&amp;rsquo;ve found that the only one that meets the following &amp;ldquo;make it easy&amp;rdquo; criteria is &lt;code&gt;colorBlindness&lt;/code&gt;. Those criteria are:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Why ggplot2&#39;s default color palette is bad</title>
      <link>/2026/04/27/why-ggplot2-s-default-color-palette-is-bad/</link>
      <pubDate>Mon, 27 Apr 2026 00:00:00 +0000</pubDate>
      <guid>/2026/04/27/why-ggplot2-s-default-color-palette-is-bad/</guid>
      <description>&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;/h1&gt;&#xA;&lt;p&gt;You don&amp;rsquo;t want to make colorblind unfriendly garbage do you? No? Great, let me show you why ggplot2&amp;rsquo;s default color palette is exactly that, using the package &lt;code&gt;colorBlindness&lt;/code&gt;. In fact, let me show you why it&amp;rsquo;s actually not a great palette for folks without colorblindness either. You can &lt;a href=&#34;#custom&#34;&gt;skip to the bottom&lt;/a&gt; to find the code I used to make this.&lt;/p&gt;&#xA;&lt;h1 id=&#34;the-color-variants&#34;&gt;The Color Variants&lt;/h1&gt;&#xA;&lt;p&gt;The ggplot default color scheme does adapt colors as you add groups, becoming more and more rainbow.  Pretty, right?&#xA;&lt;img src=&#34;/2026/04/27/why-ggplot2-s-default-color-palette-is-bad/index_files/figure-html/barplot1-1.png&#34; alt=&#34;&#34; width=&#34;672&#34; style=&#34;display: block; margin: auto;&#34; /&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
