<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Cormac O&#39;Keeffe on Medium]]></title>
        <description><![CDATA[Stories by Cormac O&#39;Keeffe on Medium]]></description>
        <link>https://medium.com/@lxpuxr?source=rss-d6f052b05ffd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*pRXmY4y534iklI1S.png</url>
            <title>Stories by Cormac O&amp;#39;Keeffe on Medium</title>
            <link>https://medium.com/@lxpuxr?source=rss-d6f052b05ffd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:00:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lxpuxr/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[User Research surveys: How to visualise Likert survey data]]></title>
            <link>https://lxpuxr.medium.com/user-research-surveys-how-to-visualise-likert-survey-data-408c3a658470?source=rss-d6f052b05ffd------2</link>
            <guid isPermaLink="false">https://medium.com/p/408c3a658470</guid>
            <category><![CDATA[mls]]></category>
            <category><![CDATA[lxp]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[user-research]]></category>
            <dc:creator><![CDATA[Cormac O'Keeffe]]></dc:creator>
            <pubDate>Thu, 15 Jul 2021 07:15:58 GMT</pubDate>
            <atom:updated>2021-07-18T06:43:10.311Z</atom:updated>
            <content:encoded><![CDATA[<h3>Part 2</h3><p>So, you have lots of lovely data from a Likert survey? Here’s how you can visualise your data using R.</p><blockquote>I’ve added a fake dataset and the script that you can use to reproduce the charts that you can see below. You can access them at the bottom of the page. So if you prefer to jump right in, you can skip the rest of this tutorial and go directly to the files and play around with them.</blockquote><p>Below, you’ll find a case study for using Likert-style data to produce insights into what users prioritise in a Learning Experience Platform (LXP).</p><h4>The problem</h4><p>At our organisation, let’s call it Company XYZ, we’re using our LXP to offer a range of courses to students. Some are fully asynchronous while others are blended with real-time video lessons. Although learners use the LXP effectively, there has been a great deal of discussion on what needs to be done to improve the UX:</p><ol><li>Not everyone in the learning design, faculty, product, and engineering teams agree on what the are the priorities for improving the LXP ;</li><li>We don’t have the budget or time to develop more than two new features;</li><li>We needed to produce some quantitative data with insights to present to other stakeholders — and quickly!</li></ol><p>We sent out a survey to 300 students and got 176 replies back. The software we used, Microsoft Forms, allowed us to present the data as a stacked bar chart with no effort on our part. However, we weren’t able to compile data from different surveys — in this case we had data from four cohorts in different cities. In this tutorial, I’ll show you how to visualise data complied from different surveys (<a href="https://medium.com/@ocaoimh/user-research-surveys-how-to-merge-likert-survey-data-from-multiple-excel-workbooks-the-easy-way-f22d8bd539ea">read Part One here</a>) and present them as one graph.</p><h4>The solution</h4><p>Fortunately, there are a number of great libraries in the Rverse. The one I chose here is ‘<a href="https://github.com/jbryer/likert">likert</a>’, made by <a href="https://twitter.com/jbryer">Jason Bryer </a>from CUNY. While, it’s a great library, it won’t always be obvious how to use it. This tutorial will show you how.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LVh9GgawGtlkhjXx-LetBA.png" /><figcaption>Figure 1: A stacked bar chart showing the user research data</figcaption></figure><h4>Sorting out our data</h4><p>First, you’ll need your data. For this tutorial, I’ve created a spreadsheet that was complied from four different spreadsheets created by Microsoft Forms. It’s a pretty standard table-based format. Many survey tools will give you output in this way. You can see an example of how the data are structured in the Github repository.</p><ol><li>You’ll need to load a few libraries and then <a href="https://richpauloo.github.io/2018-10-17-How-to-keep-your-R-projects-organized/">import your data.</a></li><li>Then, you’ll convert your variables from text into factors. This allows <em>likert</em> to calculate the percentage of responses. We use <em>lapply</em> and <em>sapply</em> for this.</li><li>We’ll then drop the first column (cohort). We’ll use this later on but for now, we need a separate data frame with only the items (LXP.data.items).</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e74e55c5692deae94dad504bff14f4f0/href">https://medium.com/media/e74e55c5692deae94dad504bff14f4f0/href</a></iframe><h4>More cleaning and ordering the items</h4><p>Now your data has been converted into factors and any non-item information has been removed, you’ll need to do some more preparation.</p><p>4. When we factorised the data, we added full stops to each column header. We’ll remove these with gsub</p><p>5. Likert has a tendency to order the items responses (Very important, important, etc) in alphabetical order. To get around this, we order our data by question and response hierarchy so it matches what we sent to the students.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0edaae50c7c2dd080e11d2e3d1bf65d5/href">https://medium.com/media/0edaae50c7c2dd080e11d2e3d1bf65d5/href</a></iframe><h4>Creating the the distributions</h4><p>6. Now it’s time to apply likert to create our distributions. First, we’ll convert our data frame into a list that has all of the percentages for each question. We can look at this with the summary function that will give us the distribution over each tertile along with the standard deviation and mean for each question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*wqcqrOKDFrcm6PqEkBhhWw.png" /><figcaption>Figure 2: output from the summary. The questions aren’t in the right order but you get the idea</figcaption></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f6ce412c462f495861b3ed27f62a5a17/href">https://medium.com/media/f6ce412c462f495861b3ed27f62a5a17/href</a></iframe><h4>Plotting our data</h4><p>7. Once we’ve done that, we can plot the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TNcTSjsQJJsmtlSqVfT2EA.png" /><figcaption>Figure 3: the default plot</figcaption></figure><p>The default colour palette is green and brown. This may work for you but chances are you’ll have to adjust the colour scheme to match the visual identity of your organisation (or your personal preferences).</p><p>This is super easy to do, just choose the hexcodes of the colours, ideally separating them into contrasting colours that allow your readers to see the difference in agreement and disagreement. Here’s a <a href="https://coolors.co/fcaa67-b0413e-ffffc7-548687-473335">great site </a>to choose colour palettes with.</p><p>For the next steps, you’ll just have to add a title and, if you wish, show the percentages for each response category.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ke4CzCnOeQdn6WQhh4HD4A.png" /><figcaption>Figure 4: the customised plot</figcaption></figure><p>You may have a problem with missing data. This often happens when you allow respondents the choice to reply or not. One of the nice things about likert is that you can show a histogram with the number of missing responses for each category.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mFRb5C1UIa9u5yV2EswSZQ.png" /><figcaption>Figure 5: A likert data visualisation with a histogram showing missing or completed data</figcaption></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f6ce412c462f495861b3ed27f62a5a17/href">https://medium.com/media/f6ce412c462f495861b3ed27f62a5a17/href</a></iframe><p>In Part 3, (to come) we’ll look at how to visualise your data with subsets (e.g., cohorts, cities, age, gender etc.). We’ll also look at how to see what insights and actions we can generate based on our data visualisations.</p><p>Here’s a link to the Github repository with a fake dataset and the R code below. This will allow you to reproduce the example and adapt it to your own projects:</p><p><a href="https://github.com/ocaoimh/likert_data_viz">ocaoimh/likert_data_viz</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=408c3a658470" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[User Research surveys: How to merge Likert survey data from multiple Excel workbooks the easy way]]></title>
            <link>https://lxpuxr.medium.com/user-research-surveys-how-to-merge-likert-survey-data-from-multiple-excel-workbooks-the-easy-way-f22d8bd539ea?source=rss-d6f052b05ffd------2</link>
            <guid isPermaLink="false">https://medium.com/p/f22d8bd539ea</guid>
            <category><![CDATA[user-research]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[elearning]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[surveys]]></category>
            <dc:creator><![CDATA[Cormac O'Keeffe]]></dc:creator>
            <pubDate>Wed, 17 Feb 2021 10:21:33 GMT</pubDate>
            <atom:updated>2021-07-17T09:32:59.009Z</atom:updated>
            <content:encoded><![CDATA[<h3>Part 1</h3><p>Have you ever had your data spread across dozens or even hundreds of files? I have! In this article:</p><ul><li>I’ll show you how to use RStudio to combine your Likert data into one file</li><li>Give you a sample project to test the script and then adapt it to your own projects</li><li>Give some tips on how to structure survey-based User eXperience Research (UXR)data to make analysis easier and faster</li></ul><h4>The problem: survey data spread across multiple files</h4><p>Recently, I’ve been doing user research where my data are spread across multiple files. There were different reasons for this:</p><ul><li>Different teams were running the same survey and it was important to them to ‘own’ the data or add on specific questions</li><li>The same survey was being run on different LMSes</li><li>Most of the LMSes use discrete surveys embedded into each course.</li></ul><p>You might ask, why bother with a script when you can just copy and paste the files? Well, when you have dozens or even hundreds of files, it can be time consuming and horribly dull when you have to perform the same operation on a regular basis. Also, copying and pasting invariably leads to errors that can be difficult to spot and may invalidate your results.</p><h4>The solution: R</h4><p>You may have heard of R. If you haven’t it’s a programming language that allows you to process, analyse, and visualise data. The purpose of this article isn’t so much to extol the virtues of R. However, if you’re interested in a technology that will allow you to do almost anything you like with data <em>and</em> that’s a future-proof investment of your time, I highly recommend it.</p><p>If you don’t already have R and RStudio installed, this tutorial will help you get started. <br><a href="https://www.guru99.com/download-install-r-rstudio.html#6">https://www.guru99.com/download-install-r-rstudio.html#6</a></p><p>In the section below I’ll walk you through the steps.</p><h4>The code</h4><p>If you’re familiar with R, all of the code with comments can be found below and you can probably jump right in and skip the rest. As you can see, it’s quite short.</p><p>However, if you’re still new to R, I’ll run through the key steps below</p><h4>The code</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c4ff61ae439cda2d6efce18a9bf1431f/href">https://medium.com/media/c4ff61ae439cda2d6efce18a9bf1431f/href</a></iframe><h4>The walkthrough</h4><ol><li>Load your libraries. For this project, you’ll just need two, “readxl” and “data.table”.</li></ol><pre>library(readxl)<br>library(data.table)</pre><p>2. Place all of your surveys into one folder. In this example, I’ve called the folder “my_data”. Then set your working directory to this folder.</p><pre>#set your working directory. <br>setwd(&quot;~/merge_excel_workbooks/my_data&quot;)</pre><blockquote>The “~” just means that it’s in the root folder of your computer. If you’re not sure how to correctly set your path, you can navigate to the folder set it with the blue gear icon.</blockquote><p>3. Now for the functions. I’ve commented the lines, but basically what it does is, it creates a list of all of the files, runs through the data in the first workbook of each files then joins them all together with name each workbook in the ‘source_name’ column, that is, each Excel workbook.</p><pre><strong># 1. list the excel files and produce a character vector <br></strong>file.list &lt;- list.files(pattern = &#39;*.xlsx&#39;)<br>file.list &lt;- setNames(file.list, file.list) </pre><pre><strong>#2. takes file.list and read the data from the first worksheet of each workbook and copies this into our file.list<br></strong>df.list &lt;- lapply(file.list, read_excel, sheet = 1) </pre><pre><strong>#3. take each workbook and join them together<br></strong>df.list &lt;- Map(function(all_files, name) {  <br>all_files$source_name &lt;- name  all_files}, df.list, names(df.list))</pre><pre>all_files &lt;- rbindlist(df.list, idcol = &quot;id&quot;, fill = TRUE)</pre><p>4. Once you’ve done this, you can then work with your data, now called ‘all_files’ directly in R.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gSTZfGQUy_Ubqsh_wmXXHQ.png" /></figure><p>Or, if you prefer, you can export your data directly into a CSV file.</p><pre>write.csv(all_files, &quot;all_surveys_elearning_jan_2021.csv&quot;)</pre><p>You’ll be able to find it in your working directory.</p><h4>Structuring your data</h4><p>This script will work no matter how messy your data is. That said, if you workbooks contain surveys with different questions, it will add on extra columns with the mismatched data to the end of your merged dataset. Ideally, you should clean your data beforehand to ensure that the ‘shape’ of the data is identical.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kNxbLX6QJ_XYSN5FeXqlhQ.png" /></figure><h4>Access the script and sample workbooks on GitHub</h4><p>You can download the sample script and workbooks here. I’ve deliberately only put two, very small datasets in the project. This will allow you, especially if you are new to R, to experiment with the process more easily:</p><p><a href="https://github.com/ocaoimh/merge_excel_workbooks">https://github.com/ocaoimh/merge_excel_workbooks</a></p><h4>Next steps</h4><p>Now that you have all of your lovely data in one data table you need to do something with it. In the <a href="https://lxpuxr.medium.com/user-research-surveys-how-to-visualise-likert-survey-data-408c3a658470">next post </a>I’ll show you how to analyse and visualise your Likert data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f22d8bd539ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>