<?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 Lhaynes on Medium]]></title>
        <description><![CDATA[Stories by Lhaynes on Medium]]></description>
        <link>https://medium.com/@lhaynes2?source=rss-c0afb42f0f9d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*GPSMgpypHWwjtygg</url>
            <title>Stories by Lhaynes on Medium</title>
            <link>https://medium.com/@lhaynes2?source=rss-c0afb42f0f9d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 13:22:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lhaynes2/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[Making My Bluesky Sentiment Chart Easier to Read]]></title>
            <link>https://medium.com/@lhaynes2/making-my-bluesky-sentiment-chart-easier-to-read-d8b336c63eef?source=rss-c0afb42f0f9d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8b336c63eef</guid>
            <category><![CDATA[sentiment-analyis]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[dashboard-design]]></category>
            <category><![CDATA[r-programming]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Lhaynes]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 08:39:37 GMT</pubDate>
            <atom:updated>2026-11-24T08:39:37.982Z</atom:updated>
            <content:encoded><![CDATA[<p>For my business analytics project, I analyzed a collection of Bluesky posts that mentioned malls. My goal was to find common words and explore the sentiment labels assigned by an English word dictionary.</p><p>My original report included tables, R code, and an interactive vertical bar chart. For this redesign, I changed the chart to horizontal bars, added clear number labels, and highlighted posts that had no dictionary matches.</p><p>The updated report successfully rendered in Posit Cloud. The redesign made the results easier to read while keeping an important limitation close to the chart.</p><h3>The Business Question</h3><p>My original question was: <strong>What words appear often in these posts, and what sentiment labels does a simple English dictionary assign?</strong></p><p>The supplied file contained 197 posts. My analysis used 144 posts tagged as English. It excluded 48 posts without language tags and five posts with other language tags.</p><p>A marketing team or shopping center manager could use this type of analysis to explore online conversations and identify topics for further research. However, these posts do not represent all shoppers. The collection method and search terms were not supplied, so the findings describe this particular collection.</p><p>My <a href="https://rpubs.com/lhaynes91/1477692">original report on RPubs</a> provides the background, cleaning rules, and original visualization.</p><h3>The Technique and Tutorial</h3><p>The main technique was a <strong>horizontal bar chart with direct labels and an explanatory note</strong>.</p><p>The redesign used Plotly’s <a href="https://plotly.com/r/horizontal-bar-charts/">Horizontal Bar Charts in R</a> tutorial as a reference. Its basic example shows how to put numerical values on the horizontal axis and category names on the vertical axis using orientation = &quot;h&quot;.</p><p>Plotly’s <a href="https://plotly.com/r/text-and-annotations/">Text and Annotations in R</a> guide supported the explanatory note below the chart.</p><p>I used AI assistance to update the R code. The design choices focused on my existing results: making category names readable, showing counts and percentages, and explaining why an unmatched post should not be treated as neutral.</p><h3>Step 1: Keep the Existing Analysis</h3><p>The redesign uses the sentiment results already calculated in Section 4 of my R Markdown report.</p><p>The analysis uses the Bing sentiment dictionary through the tidytext package. Each post receives a score based on its positive word matches minus its negative word matches.</p><p>The four categories are:</p><ul><li><strong>Positive:</strong> More positive matches than negative matches.</li><li><strong>Negative:</strong> More negative matches than positive matches.</li><li><strong>Balanced:</strong> Equal positive and negative matches, with at least one match.</li><li><strong>No matched words:</strong> No words matched the sentiment dictionary.</li></ul><p>Keeping these definitions clear matters. Balanced and unmatched posts describe different situations, and neither category proves that someone expressed a neutral opinion.</p><h3>Step 2: Change the Chart to Horizontal Bars</h3><p>The updated code replaced the original chart in Section 5.</p><p>In the plot_ly() call, the number of posts goes on the x-axis, and the classification goes on the y-axis. Adding orientation = &quot;h&quot; creates the horizontal bars.</p><p>The categories appear in a fixed order: Positive, Negative, Balanced, and No matched words. The number axis starts at zero so readers can compare bar lengths fairly.</p><p>This layout gives the longer category names more room and keeps them readable.</p><h3>Step 3: Add Labels and Highlight Missing Matches</h3><p>Each bar now displays its count and percentage. Readers can see the main results without hovering:</p><ul><li>Positive: <strong>52 posts, or 36.1%</strong></li><li>Negative: <strong>32 posts, or 22.2%</strong></li><li>Balanced: <strong>9 posts, or 6.2%</strong></li><li>No matched words: <strong>51 posts, or 35.4%</strong></li></ul><p>The percentages use all 144 analyzed posts. Rounding means they may not add up to exactly 100%.</p><p>The first three bars use blue. The unmatched category uses orange to draw attention to the gap in dictionary coverage. Written labels communicate the results as well, so readers do not have to rely on color.</p><h3>Step 4: Explain the Limitation</h3><p>Below the chart, a note explains that 51 posts had no dictionary matches and were not classified as neutral. It also states that the collection method and search terms were not supplied.</p><p>This explanation helps prevent a misleading conclusion. A word dictionary does not understand the full meaning of a sentence. For example, my original report documents a post where “like” introduces an example, but the dictionary counts it as positive.</p><p>The posts also include different meanings of “mall,” such as shopping centers, the National Mall, and transit malls.</p><h3>The Finished Chart</h3><p><em>Figure 1. The redesigned chart shows counts and percentages while highlighting posts without dictionary matches.</em></p><p>The updated report rendered successfully, and all nine existing reference comparisons matched. The chart’s labels and explanatory note were also checked in the rendered report.</p><h3>Business Uses and What I Learned</h3><p>Positive dictionary labels occurred more often than negative labels. However, 35.4% of the analyzed posts had no dictionary matches. A business team should review the actual conversations before making decisions.</p><p>A useful next step would be to identify posts specifically about shopping malls and check whether their sentiment labels match their meaning. This could help a marketer choose topics for further investigation.</p><p>My main lesson is that dashboard design affects interpretation. Clear labels help people read the numbers, and a nearby explanation helps them understand what those numbers can support.</p><h3>References</h3><p>Haynes, L. (n.d.). <em>What do these BlueSky posts say about malls?</em> RPubs. <a href="https://rpubs.com/lhaynes91/1477692">https://rpubs.com/lhaynes91/1477692</a></p><p>Plotly. (n.d.). <em>Horizontal bar charts in R.</em> <a href="https://plotly.com/r/horizontal-bar-charts/">https://plotly.com/r/horizontal-bar-charts/</a></p><p>Plotly. (n.d.). <em>Text and annotations in R.</em> <a href="https://plotly.com/r/text-and-annotations/">https://plotly.com/r/text-and-annotations/</a></p><p>Silge, J., &amp; Robinson, D. (n.d.). <em>Sentiment analysis with tidy data.</em> In <em>Text mining with R: A tidy approach.</em><a href="https://www.tidytextmining.com/sentiment">https://www.tidytextmining.com/sentiment</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8b336c63eef" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>