<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
      <title>Loose Ends</title>
      <link>https://nikolaydudaev.com</link>
      <description></description>
      <generator>Zola</generator>
      <language>en</language>
      <atom:link href="https://nikolaydudaev.com/rss.xml" rel="self" type="application/rss+xml"/>
      <lastBuildDate>Tue, 13 Oct 2026 00:00:00 +0000</lastBuildDate>
      <item>
          <title>New R Theme - nordtheme</title>
          <pubDate>Tue, 13 Oct 2026 00:00:00 +0000</pubDate>
          <author>Unknown</author>
          <link>https://nikolaydudaev.com/articles/new-r-theme/</link>
          <guid>https://nikolaydudaev.com/articles/new-r-theme/</guid>
          <description xml:base="https://nikolaydudaev.com/articles/new-r-theme/">&lt;p&gt;I am not a good designer. Generally I have problems with colors and fonts and all that stuff. Many times my approach is to find some good theme, be it for Vim or for data visualization and then use it everywhere without thinking to much about it.&lt;/p&gt;
&lt;p&gt;That is how I&#39;ve found &lt;a rel=&quot;external&quot; href=&quot;https://www.nordtheme.com/&quot;&gt;Nord Theme&lt;/a&gt;. I used it for my Vim setup. And now I have ported it to an R theme to be used with &lt;code&gt;ggplot&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&quot;about-the-nord-theme&quot;&gt;About the Nord Theme&lt;/h2&gt;
&lt;p&gt;The setup is simple. Nord theme has 16 colors and 4 main plattes:&lt;/p&gt;
&lt;h3 id=&quot;polar-night&quot;&gt;Polar Night&lt;/h3&gt;
&lt;p&gt;&lt;img src=&quot;https://nikolaydudaev.com/articles/new-r-theme/Polar-Night.png&quot; alt=&quot;Polar Night&quot; /&gt;&lt;/p&gt;
&lt;h3 id=&quot;snow-storm&quot;&gt;Snow Storm&lt;/h3&gt;
&lt;p&gt;&lt;img src=&quot;https://nikolaydudaev.com/articles/new-r-theme/Snow.png&quot; alt=&quot;Snow Storm&quot; /&gt;&lt;/p&gt;
&lt;h3 id=&quot;frost&quot;&gt;Frost&lt;/h3&gt;
&lt;p&gt;&lt;img src=&quot;https://nikolaydudaev.com/articles/new-r-theme/Frost.png&quot; alt=&quot;Frost&quot; /&gt;&lt;/p&gt;
&lt;h3 id=&quot;aurora&quot;&gt;Aurora&lt;/h3&gt;
&lt;p&gt;&lt;img src=&quot;https://nikolaydudaev.com/articles/new-r-theme/Aurora.png&quot; alt=&quot;Aurora&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Polar Night&lt;/strong&gt; and &lt;strong&gt;Snow Storm&lt;/strong&gt; can be used for backgroundand text elements. &lt;strong&gt;Frost&lt;/strong&gt; and &lt;strong&gt;Aurora&lt;/strong&gt; can be used for coloring and highlighting, which makes them suitable for &lt;code&gt;ggplot&lt;/code&gt; charts.&lt;/p&gt;
&lt;h2 id=&quot;nordtheme&quot;&gt;&lt;code&gt;nordtheme&lt;/code&gt;&lt;/h2&gt;
&lt;p&gt;I am working on this small project about server logs analysis and affter long pause I was happy to pick up &lt;code&gt;R&lt;/code&gt; again (majority of my projects are in Python, unfortunately).
While make pretty basic &lt;code&gt;ggplot&lt;/code&gt; charts for logs analysis I, as is typical for me, started to think that my charts should probably look a certain way not &lt;code&gt;ggplot&lt;/code&gt; defaults. So I&#39;ve created this &lt;code&gt;nordtheme&lt;/code&gt; package.&lt;/p&gt;
&lt;p&gt;You can find it at my &lt;a rel=&quot;external&quot; href=&quot;https://git.nikolaydudaev.com/ndudaev/nordtheme&quot;&gt;forge here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The idea is simple. Have two modes - &lt;strong&gt;dark&lt;/strong&gt; and &lt;strong&gt;light&lt;/strong&gt;. This is controled by &lt;code&gt;theme_nord&lt;/code&gt; function.
There are options for discrete, continuous, diverging and semantic scales:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;scale_colour_nord_d&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;scale_fill_nord_d&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;scale_colour_nord_c&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;scale_fill_nord_c&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;scale_colour_nord_d&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;scale_fill_nord_d&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;scale_colour_nord_status&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;scale_fill_nord_status&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All in all, a very simple and basic implementation of a theme.&lt;/p&gt;
&lt;p&gt;Here is how it look in &lt;code&gt;ggplot&lt;/code&gt; charts:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color: #D8DEE9; background-color: #2E3440;&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;library(ggplot2)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;library(nordtheme)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;# Discrete colours: scatter by group&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;ggplot(mpg, aes(displ, hwy, colour = class)) +&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    geom_point(size = 2.2, alpha = 0.9) +&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    scale_colour_nord_d() +&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    labs(title = &amp;quot;Engine size vs. highway mileage&amp;quot;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;         subtitle = &amp;quot;Discrete &amp;#39;mixed&amp;#39; palette: Frost and Aurora interleaved&amp;quot;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;         x = &amp;quot;Displacement (L)&amp;quot;, y = &amp;quot;Highway MPG&amp;quot;, colour = NULL,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;         caption = &amp;quot;Data: ggplot2::mpg&amp;quot;) +&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    theme_nord(&amp;quot;dark&amp;quot;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This code produces this:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://nikolaydudaev.com/articles/new-r-theme/chart-example.png&quot; alt=&quot;Chart Example&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Anywas, that is all for a short intro to my new &lt;code&gt;nordtheme&lt;/code&gt;. Feel free to browse for more examples and source code in the &lt;a rel=&quot;external&quot; href=&quot;https://git.nikolaydudaev.com/ndudaev/nordtheme&quot;&gt;repository&lt;/a&gt;.&lt;/p&gt;
</description>
      </item>
    </channel>
</rss>
