<?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 Simisani Ndaba on Medium]]></title>
        <description><![CDATA[Stories by Simisani Ndaba on Medium]]></description>
        <link>https://medium.com/@simisani.ndaba013?source=rss-c56b343acd90------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xatV6KH55JGrw8FX0tCUNQ.jpeg</url>
            <title>Stories by Simisani Ndaba on Medium</title>
            <link>https://medium.com/@simisani.ndaba013?source=rss-c56b343acd90------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 09:33:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@simisani.ndaba013/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[Curating R-Ladies @weare.rladies.org Bluesky account]]></title>
            <link>https://medium.com/@simisani.ndaba013/curating-r-ladies-weare-rladies-org-bluesky-account-655b04f49c21?source=rss-c56b343acd90------2</link>
            <guid isPermaLink="false">https://medium.com/p/655b04f49c21</guid>
            <category><![CDATA[community-engagement]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Simisani Ndaba]]></dc:creator>
            <pubDate>Wed, 26 Feb 2025 08:53:27 GMT</pubDate>
            <atom:updated>2025-02-26T08:53:27.598Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="@weare.rladies.org Bluesky account profile featuring the author’s details from the 27th of January to the 1st of February 2025." src="https://cdn-images-1.medium.com/max/1024/1*qYBE7AivLkPNukbwubdcnA.jpeg" /><figcaption>@weare.rladies.org Bluesky account profile featuring the author’s details from the 27th of January to the 1st of February 2025.</figcaption></figure><h4>R-Ladies Rotation Curation</h4><p>The <a href="https://guide.rladies.org/rocur/about/">R-Ladies Rotating Curation (RoCur)</a> is a social media handle that features an R-lady each week. The first time I heard about the RoCur programme was in 2022 on the We are R-Ladies Twitter account. After amazing years of R-Lady curation, and a period on hiatus, they left the Twitter hoping to reignite the spark on <a href="https://bsky.app/">Bluesky</a>. Bluesky is a decentralized social media platform, originally initiated by Twitter’s former CEO Jack Dorsey. It’s an alternative to Twitter/X, designed to be more open and user-controlled through decentralization.</p><h4>How I got involved</h4><p>At the end of 2024, the R-Ladies Global put out a call for the community who wanted to join the RoCur team. This time I wanted to be involved because I didn’t get a chance to join the R-Ladies Global team in 2023 when there was a call to join the team. After filling in the <a href="https://airtable.com/appjkZZgtF0iEWFjx/pagqsAma1WmUYxa9j/form">@weare.rladies.org curator Sign Up</a>, I didn’t think I would be considered because I had never curated before and I hardly post on my own social media accounts. Fortunately, I was considered and immediately started planning the content I wanted to share.</p><h4>Curating on Bluesky</h4><p>To curate the @weare.rladies.org Bluesky account, an app password is needed to access the account. Bluesky posts are limited to 300 characters and unlike in Twitter, draft posts can not be saved. To save planned posts, I used a Google doc to access it anytime and anywhere I was to write any idea I had that I wanted to post. Curating from Gaborone, Botswana made me think about the time difference of my posts, then I realised that no matter the time I posted, they would be seen at anytime.</p><p>Previously, @WeAreRLadies on Twitter used TweetDeck, which is a Twitter management tool. TweetDeck allows users to manage multiple Twitter accounts, track real-time updates, and organize tweets using customizable columns as seen on the image below. An archive of all @WeAreRLadies past activity on Twitter can be found at, <a href="https://rladies.org/tweet-archive/wearerladies/">https://rladies.org/tweet-archive/wearerladies/</a>.</p><figure><img alt="WeAreRLadies Twitter archive screenshot by author." src="https://cdn-images-1.medium.com/max/832/1*l1zgmc3PyKck3KFa5WQXmg.png" /><figcaption>WeAreRLadies Twitter archive screenshot by author.</figcaption></figure><figure><img alt="Screenshot of TweetDeck 1.3 by Tim Carmody on Wired Magazine article, “Hands-on: TweetDeck wants to be your pro Twitter client again”." src="https://cdn-images-1.medium.com/max/1024/1*rMS2qEEaR8T9dIyc7Gp0gA.jpeg" /><figcaption>Screenshot of TweetDeck 1.3 by Tim Carmody on Wired Magazine article, “Hands-on: TweetDeck wants to be your pro Twitter client again”.</figcaption></figure><p>I knew that I wanted to share R work so I posted R-Ladies meetup events that were taking place at the time. The <a href="https://genuary.art/">Genuary</a> challenge, a daily generative art challenge, was on-going and thought I would share my daily Genuary plots through out the week. The following is an account of my some of my daily curation.</p><h4>Day 01</h4><p>For the first day I talked about the <a href="https://github.com/r-wasm/quarto-drop">quarto drop</a> plugin for reveal.js developed by <a href="https://gws.phd/">George Stagg</a> and how I incorporated it into the <a href="https://simi.quarto.pub/creating-r-functions">Writing R Functions</a> workshop as part of the <a href="https://sites.google.com/view/dariia-mykhailyshyna/main/r-workshops-for-ukraine#h.gexa04vwk3tq">Workshop for Ukraine series</a> by <a href="https://sites.google.com/view/dariia-mykhailyshyna/main?authuser=0">Dariia Mykhailyshyna</a>. The feature is used during presentations, as a drop shortcut and insert the code you want to run. After the webR packages have been downloaded, the output of the code shows up on the right side or depending on the layout you want it to display.</p><figure><img alt="quarto drop demonstration by author." src="https://cdn-images-1.medium.com/max/1024/1*oYPEWbSdm7_I95cku4tQHg.gif" /><figcaption>quarto drop demonstration by author.</figcaption></figure><pre>#Add the plugin to your reveal.js slides, as part of your yaml header:<br><br>---<br>title: &quot;Quarto drop&quot;<br>format: revealjs<br>revealjs-plugins:<br>  - drop<br>---</pre><p>A few weeks before my curation, <a href="https://posit.co/">posit PBC</a> opened their call for speakers for posit::conf 2025 as well as their opportunity scholarship. I posted some insightful blogs by previous attendees about their time at the conference such as <a href="https://medium.com/illumination/my-time-at-posit-conf-2023-in-chicago-e9ed729ce76a">my own time at posit::conf in 2023 </a>.</p><p>For my Genuary day 27, I posted <a href="https://github.com/sndaba/genuary2025/tree/main/genuary27">my code and plot </a>themed: Make something interesting with no randomness or noise or trig.</p><figure><img alt="Genuary day 27 plot by author." src="https://cdn-images-1.medium.com/max/516/1*nhM1tsjc1l4vSYKiiwt-XQ.jpeg" /><figcaption>Genuary day 27 plot by author.</figcaption></figure><h4>Day 02</h4><p>Around this time, there had been articles written about the R {targets} package from data scientists like <a href="https://djnavarro.net/">Danielle Navarro</a> and an R-Ladies Philly meetup with <a href="https://papsti.github.io/">Irena Papst</a>. I figured I’d give it a crack, starting with installing and loading the {targets} package, creating a targets.R script that defines the workflow pipeline. I also added a csv in the same working directory to be used in the workflow.<br>ID, name, value <br> 1, Alice,5 <br> 2,Bob,15 <br> 3,Charlie,25 <br> 4,Diana,10 <br> 5,Eve,30</p><figure><img alt="targets.R script defining the pipeline created by author." src="https://cdn-images-1.medium.com/max/686/1*J9SJgMqbM55pF0_OnIp6xw.png" /><figcaption>targets.R script defining the pipeline created by author.</figcaption></figure><p>Using the tar_make() function to execute your pipeline, running the pipeline using tar_read()to access the output of specific targets, a visualisation of the workflow can be displayed using the tar_visnetwork()function.</p><figure><img alt="Executing, reading and visualising the pipeline created by author." src="https://cdn-images-1.medium.com/max/800/1*uE9N5iSiV0EMVvQrKmy9fA.gif" /><figcaption>Executing, reading and visualising the pipeline created by author.</figcaption></figure><p>Apart from using the {target} package for creating pipelines, the {purrr} package, which provides tools for functional programming, is useful for applying functions across lists or data frames in a clean and efficient manner. Here is an example using {purrr} to process a list of data files.</p><figure><img alt="An example using {purrr} to process a list of data files. Code by author." src="https://cdn-images-1.medium.com/max/950/1*BZLYC6XHQEksRkIuQ_9uXw.png" /><figcaption>An example using {purrr} to process a list of data files. Code by author.</figcaption></figure><p>Another way is to create custom pipelines using functions to define the pipeline as a series of functions that call each other.</p><figure><img alt="Custom Pipelines Using Functions define your pipeline as a series of functions that call each other." src="https://cdn-images-1.medium.com/max/463/1*9Ye-f9Qawe8RLf2oVvj5fQ.png" /><figcaption>Custom Pipelines Using Functions define your pipeline as a series of functions that call each other.</figcaption></figure><p>For day 2, I posted <a href="https://github.com/sndaba/genuary2025/tree/main/genuary28">my Genuary day 28 code and plot</a> themed: Infinite scroll.</p><figure><img alt="Genuray day 28 code and plot themed: Infinite scroll by author." src="https://cdn-images-1.medium.com/max/800/1*IAiuyTkqcxJKwSRLZcFOFQ.gif" /><figcaption><a href="https://github.com/sndaba/genuary2025/tree/main/genuary28">Genuary day 28 code and plot</a> themed: Infinite scroll by author.</figcaption></figure><h4>Day 03</h4><p>Another cool extension I wanted to share that I like to use is <a href="https://r-wasm.github.io/quarto-live/getting_started/installation.html">quarto live</a> which is an alternative to quarto drop for live coding during presentation. I demonstrated how to use it by starting with running the installation in the terminal.</p><pre>#quarto live installation in the terminal<br><br>quarto add r-wasm/quarto-live</pre><p>Then,</p><pre>#create a new quarto doc/presentation and add the template in the YAML header<br><br>--<br>title: R Example<br>engine: knitr<br>format: live-html<br>--<br> <br>{{&lt; include ./_extensions/r-wasm/live/_knitr.qmd &gt;}</pre><p>For day 3, I posted <a href="https://github.com/sndaba/genuary2025/tree/main/genuary29">my Genuary day 29 code and plot</a> themed: Grid-based graphic design.</p><figure><img alt="Genuary day 29 code and plot themed: Grid-based graphic design by author." src="https://cdn-images-1.medium.com/max/559/1*7taRU7dhsCvzhw56ynRRQw.jpeg" /><figcaption>Genuary day 29 code and plot themed: Grid-based graphic design by author.</figcaption></figure><h4>Day 04</h4><p>By day 4 I was running out of content to share because I hadn’t worked on R for sometime. I continued sharing work done by other ladies such as Cara Thompsons’ blog on <a href="https://www.cararthompson.com/posts/2025-01-14-optimising-colours-in-a-spaghetti-plot/">Optimising the use of colours for storytelling in a spaghetti plot</a>. Her blog made me want to demonstrate modifying plots by font changing, highlighting and adding annotations to give insight to a plot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*66utqfCgOdSafiUlFrjHPA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*Y0utgKyI2-EMXnx7OqoyIA.jpeg" /><figcaption>Initial plot code (left) with generated output by author.</figcaption></figure><p>The following modified code and plot below has added fonts from Google, annotations at certain points and a highlighted area to point out a specific area in a dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wWdAYUF_9QZe-pXekZp5xw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*TPtT2B67ex8BBtaSjz-euA.jpeg" /><figcaption>Modified code (left) and generated plot from the modified code (right) showing a more compelling data viz done by author.</figcaption></figure><p>For day 4, I shared <a href="https://github.com/sndaba/genuary2025/tree/main/genuary30">my Genuary day 30 code link and plot</a> themed: Abstract map.</p><figure><img alt="Genuary day 30 plot themed Abstract only by author." src="https://cdn-images-1.medium.com/max/888/1*3OCXkowYPJV4jTPtkHvaOg.jpeg" /><figcaption>Genuary day 30 plot themed Abstract map by author.</figcaption></figure><h4>Day 05</h4><p>In continuing sharing work that I found insightful, I found <a href="https://github.com/hypebright">Veerle van Leemput</a>’s blog on <a href="https://hypebright.nl/en/r-en/s7-a-new-object-oriented-programming-system-in-r-2/">S7: A New Object-Oriented Programming System in R</a> exciting because of her easy to read explanation on OOP. I wanted to write a blog on Meta-heuristic Optimisation in R but I thought it would have been too complicated to explain and no one would be interested in reading it. Veerle’s blog goes to show how much one blog can inspire another one. Unfortunately, I didn’t share anything about Meta Heuristic Optimisation and thought it better to write a blog on it.</p><p>Day 5 was the last day of Genuary. I posted <a href="https://github.com/sndaba/genuary2025/tree/main/genuary31">my last code and plot</a> themed: Pixel sorting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wl_asxZdkeNqJ94E3wgnmg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Ht06oM9K7diVeY54nwmtA.png" /><figcaption>The original image taken from the Hyatt Regency Hotel in Downtown Chicago (left) and the pixel sorted image (right) by author.</figcaption></figure><h4>Day 06 — Last day of curating</h4><p>For my last day of curating, I posted schedules of continuing data visualisations in the coming year such as the Bi weekly <a href="https://www.thetableaustudentguide.com/vizbasics">Tableau Back 2 Viz Basics</a>. More challenges like the <a href="https://www.datavisualizationsociety.org/news/2025/2/3/2025-du-bois-visualization-challenge">Du Bois challenge</a> from February 3rd to the 7th April, the <a href="https://bsky.app/profile/did:plc:5afxdowmz7vehjbobw43h4bt">30 day chart challenge</a> in April and the <a href="https://30daymapchallenge.com/">30 day map challenge</a> in November.<br>The last day of my curation fell on the 1st of February which is the first day of Black History Month. I wanted to commemorate the month relating it to R activity and the community but settled with a Happy Black History month message.</p><h4>My thoughts</h4><p>Engaging with the R-Ladies community on Bluesky was a fantastic opportunity for documenting my work experience by sharing tutorials or challenges I faced. This not only reinforces my own understanding but also helps others in the community. By actively participating, I contributed to its vibrant ecosystem while benefiting personally. Remembering that every post was an opportunity to connect, learn, and grow kept me showing up authentically and enthusiastically!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=655b04f49c21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2024 Du Bois Challenge using R Programming.]]></title>
            <link>https://medium.com/illumination/2024-du-bois-challenge-using-r-programming-02af8afa5626?source=rss-c56b343acd90------2</link>
            <guid isPermaLink="false">https://medium.com/p/02af8afa5626</guid>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[r]]></category>
            <dc:creator><![CDATA[Simisani Ndaba]]></dc:creator>
            <pubDate>Wed, 15 May 2024 10:10:26 GMT</pubDate>
            <atom:updated>2024-05-15T10:10:26.076Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*260fszKe1gVKcD9_fK5Xag.png" /><figcaption>2024 Du Bois challenge photomontage of original plates and recreated charts developed by the author.</figcaption></figure><h4>Reflecting on the #2024DuBoisChallenge</h4><p>This year, I wanted to be involved in the 2024 Du Bois Challenge, which started on February 5 and went on to April 8. I did not expect to consistently contribute over the ten weeks. Fortunately, the challenge required only one posting per week, which gave me time to work on a plot per week. My repository of the challenge can be found <a href="https://github.com/sndaba/2024DuBoisChallengeInRstats/tree/main">here</a>. I managed to complete 7/10 of the charts. I realized I was getting better as the weeks went by. I did not think I could accomplish the challenge with R alone. However, the tidyverse and ggplot packages were used in all plots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GrJX-F9dWbSOu0rsEs3vCA.png" /><figcaption>2024 Du Bois Challenge poster.</figcaption></figure><p>The theme for the challenge was organized around the colors of the Pan-African flag: <br>Challenges 1–3: red, <br>Challenges 4–6: black, <br>Challenges 7–9: green, <br>Challenge 10: a combination. <br>According to an <a href="https://nightingaledvs.com/the-dubois-challenge/">article by Anthony Stark</a>, the idea for the Du Bois Challenge came from Allen Hillery and Sekou Tyler. In early February 2021, Allen and Sekou approached Anthony Stark with the idea of creating an online challenge where people would recreate selected Du Bois visualizations and share their work online. The goal of the challenge to celebrate the data visualisation legacy of <a href="https://www.history.com/topics/black-history/w-e-b-du-bois">W.E.B Du Bois</a> — a Black American civil rights activist, sociologist and writer — by recreating the visualizations from the 1900 Paris Exposition using modern tools. He also helped form the <a href="https://naacp.org/">NAACP</a>.</p><p>All of the visualizations (the originals and my recreations) and their underlying data were already collected in Anthony Starks’s GitHub repository, so I made a special directory for the challenge.</p><p>This year the challenge offered a prize for consistent contributors who posted their creation in the Data Visualisation Society slack channel. The contributors who submitted consistently over the ten weeks won a one-year DVS Membership (valued at $99) or a Nightingale Magazine (valued at $40).</p><p>All re-created images in this article were created by the author.</p><h4>Challenge 01 _week 01, February 5— Negro Population of Georgia by Counties, 1870, 1880 (plate 06)</h4><p>For <a href="https://github.com/sndaba/2024DuBoisChallengeInRstats/blob/main/challenge01/challenge01.R">challenge 01</a>, I began creating the two maps of Georgia using the <a href="https://github.com/sndaba/2024DuBoisChallengeInRstats/blob/main/challenge01/data1870.csv">1870 </a>and <a href="https://github.com/sndaba/2024DuBoisChallengeInRstats/blob/main/challenge01/data1880.csv">1880</a> datasets. By using the maps package to get the Georgia counties, the county names in both the1880 and 1870 datasets had to merge with the Georgia region names from the maps package by changing them to lower case. The population values had to be standardized as well and colour coded according to population number.</p><p>The two legends were created using a 10 x 12 plot for text annotation. I then used the cowplot package to combine the plots together using the plot_grid() function. The background colour was set to “papayawhip”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7N_TjCV74WqwMrBZZKIwYA.png" /><figcaption>Challenge 01 original and recreation.</figcaption></figure><h4>Challenge 02_week02, February 12 — Slave and Free Negroes (plate 12)</h4><p>The following week of the challenge, I realised I needed to change the text font to “mono” which looked a lot more like the original plates. I used this font for the rest of the plots.</p><p>Using the <a href="https://github.com/sndaba/2024DuBoisChallengeInRstats/blob/main/challenge02/challenge02data.csv">Challenge 02 dataset</a>, I used the geom_line() function to draw the line through the plot. To shade the black and red areas, I used the geom_ribbon() function to show the spread or range of data points. As seen in the code block below, within the geom_ribbon function, ymin represents the lower bound of the ribbon, and ymax represents the upper bound. Free and Inf are variables. The data was set to NULL because the data had already been set to the challenge 02 dataset in the ggplot. The fill colour is set to black and red and the alpha specifies the transparency of the fill color. Unfortunately, I did not show the white lines in the plot, and the outside text is shown in the plot.</p><pre>#geom_ribbon set the black and red area in the plot<br>geom_ribbon(data = NULL, aes(ymin = Free, ymax = Inf), fill = &quot;black&quot;, alpha = 0.5) +<br>geom_ribbon(data = NULL, aes(ymin = -Inf, ymax = Free), fill = &quot;red&quot;, alpha = 0.5)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nqQCObfDfgLL7py5kwMiAA.png" /><figcaption>Challenge 02 original and recreation.</figcaption></figure><h4>Challenge 05_week 05, March 4 — Race Amalgamation in Georgia (plate 13)</h4><p><a href="https://github.com/sndaba/2024DuBoisChallengeInRstats/blob/main/challenge05/challenge05.R">Challenge 05 </a>had the shortest lines of code of all the weeks. The <a href="https://github.com/sndaba/2024DuBoisChallengeInRstats/blob/main/challenge05/challenge05data.csv">Challenge 05 dataset</a> had three values, making the plot straightforward.</p><p>I set the position to “stack” in the geom_bar() function and filled the bar by category. The three text annotations were added to the right side of the bar in their respective categories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lWFJ3LdAQ9IXq1zPCw0Ing.png" /><figcaption>Challenge 05 original and recreation.</figcaption></figure><h4>Challenge 07_week 07, March 18 — Illiteracy of the American Negro compared with other nations (plate 47)</h4><p>The <a href="https://github.com/sndaba/2024DuBoisChallengeInRstats/blob/main/challenge07/challenge07data.csv">dataset</a> used for <a href="https://github.com/sndaba/2024DuBoisChallengeInRstats/tree/main/challenge07">challenge 07</a> had population values for different nations, making the bar chart straightforward to create. However, the coord_flip() function finalised the horizontal bar chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DqMROYwZjJvk_ZuArq_jwQ.png" /><figcaption>Challenge 07 original and recreation.</figcaption></figure><h4>Challenge 08_week 08, March 25— The Rise of Negroes from Slavery to Freedom in One Generation (plate 50)</h4><p>In order to create the <a href="https://github.com/sndaba/2024DuBoisChallengeInRstats/blob/main/challenge08/challenge08.R">Challenge 08</a> chart, I started with the two stacked bar plots using the <a href="https://github.com/sndaba/2024DuBoisChallengeInRstats/blob/main/challenge08/challenge08data.csv">dataset</a> that had to be created into two new data frames, 1890 and 1860. Unlike challenge 05, these stacked bar charts did not need to use the coord_flip() function. The years in text in bold on top of the bar charts were annotated. The text in between the plots was created using a 4 x 4 plot just to add text.</p><p>All three plots were combined using plot_grid() function. Adjusting the height of the 1890 plot higher than the 1860 plot completed the recreation. After finalising the plot, I did not notice the dashed lines between the 1860 and 1890 plots. Honestly, I could not have been bothered to add the dashed lines..LoL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O8SHmTUdJcvoMHyV6bSCxQ.png" /><figcaption>Challenge 08 original plate and recreation.</figcaption></figure><h4>Challenge 09_week 09, April 1 — Proportion of Freemen and Slaves (plate 51)</h4><p>My <a href="https://github.com/sndaba/2024DuBoisChallengeInRstats/blob/main/challenge09/challenge09.R">challenge 09</a> chart recreation used a geom_area() function to fill the status of two categories, Free and slave people. The <a href="https://github.com/sndaba/2024DuBoisChallengeInRstats/blob/main/challenge09/challenge09data.csv">Challenge 09 dataset</a> needed to be converted from a wide to a long format. I found it easier to work with data in a long format for certain types of analyses and visualizations, especially when dealing with categorical variables or when you need to perform certain operations like plotting multiple variables in a single graph. I added the numerical annotations per point on the Free categories and Slave categories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5rN4cU8IzQDJyGurnRNfbA.png" /><figcaption>Challenge 09 original plates and recreation.</figcaption></figure><h4>Challenge 10_week 10, April 8 — A Series Of Statistical Charts Illustrating The Conditions Of Descendants Of Formal African Slaves Now Resident In The United States (plate 37)</h4><p>On the final week of the challenge, I did not think I would be able to create the final chart because of how complicated it looked. My steps for creating the plots are as follows.</p><p><strong>Step1</strong> — As I did with the previous plots, my <a href="https://github.com/sndaba/2024DuBoisChallengeInRstats/blob/main/challenge10/challenge10.R">challenge 10</a> used multiple plots to create each design. I used the maps package to colour code all the States and created four text annotations that were around it.</p><p><strong>Step 2</strong> — The <a href="https://github.com/sndaba/2024DuBoisChallengeInRstats/blob/main/challenge10/challenge10data.csv">pie chart dataset</a> needed ordering to get the desired layout, but somehow, the ordering did not exactly match the original plate. I used two 10 x 12 plots to create both coloured circle legends on both sides of the pie chart. The bottom text annotation used a 5 x 12 plot to add text.</p><p><strong>Step 3</strong> — In combining the plots, I started with the title and the subtitle as one plot. I then combined the map plot with the surrounding text annotations, making another plot. I added the pie chart with the two legends and the bottom text annotation, making it my third plot. Putting all three plots together, I used the papaya whip color as the background color so that all the plots could be unified and added the caption at the bottom of the chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h2xswtxdCTvURIpls0nk5Q.png" /><figcaption>Challenge ten original plates and recreation.</figcaption></figure><p>Participating in the challenge helped me learn what was possible to create using R. Even though I could not recreate every chart due to work commitments, I’m glad I shared what I had done on the Slack channel and received great feedback from other contributors. I also learned that the cowplot package is a more powerful combining tool than patchwork, in my opinion, and needs a lot of width and height adjusting to fit plots together. Hopefully, next year, I can complete the challenge, and the recreations can look more like the original plates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02af8afa5626" width="1" height="1" alt=""><hr><p><a href="https://medium.com/illumination/2024-du-bois-challenge-using-r-programming-02af8afa5626">2024 Du Bois Challenge using R Programming.</a> was originally published in <a href="https://medium.com/illumination">ILLUMINATION</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Base R to create Cat images for Day 04-Waffle themed plot for the 2024 30 Day Chart Challenge]]></title>
            <link>https://medium.com/learning-data/using-base-r-to-create-cat-images-for-day-04-waffle-themed-plot-for-the-2024-30-day-chart-challenge-26c3eaddd0dd?source=rss-c56b343acd90------2</link>
            <guid isPermaLink="false">https://medium.com/p/26c3eaddd0dd</guid>
            <category><![CDATA[r]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[30-day-challenge]]></category>
            <category><![CDATA[cats]]></category>
            <category><![CDATA[data-visualisation]]></category>
            <dc:creator><![CDATA[Simisani Ndaba]]></dc:creator>
            <pubDate>Thu, 25 Apr 2024 18:02:22 GMT</pubDate>
            <atom:updated>2024-04-25T18:02:22.514Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*Wi65-DCIMd1ATqRr.png" /><figcaption>Plot by Author</figcaption></figure><p>The <a href="https://twitter.com/30DayChartChall">30 Day Chart Challenge</a> is an annual data visualisation challenge that takes place every April with a daily plot theme that particiants create. Started by <a href="https://twitter.com/CedScherer">Cédric Scherer</a> and <a href="https://twitter.com/dr_xeo">Dr. Dominic Royé</a>, The first challenge started in 2021 and has grown from strength to strength with over 5000 followers on social media and many more data visualisation enthusiats sharing their creations. Participants can use any data visualisation tool of their choice and share their designs using the ‘#30DayChartChallenge’ on X(formerly Twitter ), Linkedin and <a href="https://mastodon.social/explore">Mastodon</a>.</p><p>This year, I wanted to participate to learn new data visualisation catergories, styles and improve my lot generation using R rogramming skills. I decided to use R first before transitioning to Python or any other tool such as <a href="https://observablehq.com/@d3">D3.js by Observable</a>.</p><h3>2024 Day 04 -Waffle</h3><p>Since the start of the challenge, I had been using gglot and other R packages to create the plots, <a href="http://p/">sndaba/2024_30DayChartChallenge</a>. The waffle theme made me think about how I could show the tiles in a waffle differently apart from the usual squares.</p><h3>1. Install packages</h3><p>I first installed the tidyverse package which has dplyr, forcats, ggplot and readr packages. I also installed the png package to read the images saved in the folder.</p><pre>#install necessary packages<br>install.packages(&quot;tidyverse&quot;)<br>install.packages(&quot;png&quot;)</pre><h3>2. UK Pet Cats dataset</h3><p>I used the 2023 T<a href="https://github.com/rfordatascience/tidytuesday?tab=readme-ov-file">idy Tuesday</a> week 5 dataset on the small home ranges and large local ecological impacts of pet cats in the United Kingdom. I read the dataset from the Tidy Tuesday github repository and saved it in cats_uk_reference variable.</p><pre>#read the dataset from the Tidy Tuesday github repository<br>cats_uk_reference &lt;- readr::read_csv(&#39;https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2023/2023-01-31/cats_uk_reference.csv&#39;)</pre><h3>3. Finding unique hours indoors to show</h3><p>After going through the dataset, I wanted to see the distinct number of hours cats stay indoors in the hrs_indoors column.</p><pre>hrs &lt;- unique(cats_uk_reference$hrs_indoors)</pre><h3>4. Using different Cat images</h3><p>I wanted to find different images of cats that represent the distinct hours instaed of using tiles for the waffle plot. I found five cartoon images from the web, saved them into my directory folder and allocated variables to each of them.</p><pre>#cat images saved in each variable<br>catpic = readPNG(&quot;cat.png&quot;)<br>grey = readPNG(&quot;greyCat.png&quot;)<br>pillow = readPNG(&quot;pillow.png&quot;)<br>world = readPNG(&quot;world.png&quot;)<br>purple = readPNG(&quot;purple.png&quot;)</pre><h3>5. Using Base R</h3><p>Using base R, I created a blank plot (15, 5) to place the images in places of the plot. I also added a title and a caption as the basis for my plot.</p><pre>## Make a 15 bt 5 blank plot<br>plot(NULL ,main = &quot;2023 UK average number of hours Cats were indoors per day&quot;,<br> sub=&quot;source:2023 Tidy Tuesday Week 05 | Graphic: Simisani Ndaba&quot;,<br> xaxt=&#39;n&#39;,yaxt=&#39;n&#39;,bty=&#39;n&#39;,ylab=&#39;&#39;,xlab=&#39;&#39;, xlim=c(0,15), ylim=c(0,5))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*KNlMp7Z1lqz12SZI.png" /><figcaption>Title and caption of the blank plot.</figcaption></figure><h3>6. Using rasterImage</h3><p>In order to place an image at a certain place, I had to use <a href="https://www.rdocumentation.org/packages/graphics/versions/3.6.2/topics/rasterImage">rasterImage</a>. The rasterImage function uses an image by the variable name, then place the image at (xleft, ybottom, xright, ytop).<br>I had to make the different cat images show for every distinct hour cats stay indoors, i.e , 12, 7, 17, 2 and 22 hours.</p><pre># Add the 12 hours<br>rasterImage(catpic,0,0,1,1)<br>rasterImage(catpic,0,1,1,2)<br>rasterImage(catpic,0,2,1,3)<br>rasterImage(catpic,0,3,1,4)<br>rasterImage(catpic,0,4,1,5)<br><br>rasterImage(catpic,1,0,2,1) <br>rasterImage(catpic,1,1,2,2)<br>rasterImage(catpic,1,2,2,3)<br>rasterImage(catpic,1,3,2,4)<br>rasterImage(catpic,1,4,2,5)<br><br>rasterImage(catpic,2,0,3,1)<br>rasterImage(catpic,2,1,3,2)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*udvLp5AAgLsmrIh8.png" /><figcaption>The cat images representing 12 hours</figcaption></figure><pre>#add 7 hours<br>rasterImage(grey,2,2,3,3) <br>rasterImage(grey,2,3,3,4)<br>rasterImage(grey,2,4,3,5)<br>rasterImage(grey,3,0,4,1)<br>rasterImage(grey,3,1,4,2)<br><br>rasterImage(grey,3,2,4,3)<br>rasterImage(grey,3,3,4,4)</pre><pre>#add 17 hours<br>rasterImage(pillow,3,4,4,5)<br>rasterImage(pillow,4,0,5,1)<br>rasterImage(pillow,4,1,5,2)<br>rasterImage(pillow,4,2,5,3)<br>rasterImage(pillow,4,3,5,4)<br><br>rasterImage(pillow,4,4,5,5)<br>rasterImage(pillow,5,0,6,1)<br>rasterImage(pillow,5,1,6,2)<br>rasterImage(pillow,5,2,6,3)<br>rasterImage(pillow,5,3,6,4)<br>rasterImage(pillow,5,4,6,5)<br>rasterImage(pillow,6,0,7,1)<br>rasterImage(pillow,6,1,7,2)<br>rasterImage(pillow,6,2,7,3)<br>rasterImage(pillow,6,3,7,4)<br>rasterImage(pillow,6,4,7,5) <br>rasterImage(pillow,7,0,8,1)</pre><pre>#add 2 hours<br>rasterImage(world,7,1,8,2)<br>rasterImage(world,7,2,8,3)</pre><pre>#add 22 hours<br>rasterImage(purple,7,3,8,4)<br>rasterImage(purple,7,4,8,5)<br>rasterImage(purple,8,0,9,1)<br>rasterImage(purple,8,1,9,2)<br>rasterImage(purple,8,2,9,3)<br><br>rasterImage(purple,8,3,9,4) <br>rasterImage(purple,8,4,9,5)<br>rasterImage(purple,9,0,10,1)<br>rasterImage(purple,9,1,10,2)<br>rasterImage(purple,9,2,10,3)<br><br>rasterImage(purple,9,3,10,4)<br>rasterImage(purple,9,4,10,5)<br>rasterImage(purple,10,0,11,1)<br>rasterImage(purple,10,1,11,2)<br>rasterImage(purple,10,2,11,3)<br><br>rasterImage(purple,10,3,11,4)<br>rasterImage(purple,10,4,11,5)<br>rasterImage(purple,11,0,12,1)<br>rasterImage(purple,11,1,12,2)<br>rasterImage(purple,11,2,12,3)<br><br>rasterImage(purple,11,3,12,4)<br>rasterImage(purple,11,4,12,5)</pre><h3>7. Customized Legend</h3><p>The legend was place within the far left in the plot with the different cat images representing the hours. The text annotation only used the x and y position as seen below.</p><pre>#annotation<br>text(15,4.5,&quot;12.5&quot;)<br>rasterImage(catpic,13,4,14,5)<br>text(15,3.4,&quot;7.5&quot;)<br>rasterImage(grey,13,3,14,4)<br>text(15,2.5,&quot;17&quot;)<br>rasterImage(pillow,13,2,14,3)<br>text(15,1.5,&quot;2&quot;)<br>rasterImage(world,13,1,14,2)<br>text(15,0.5,&quot;22&quot;)<br>rasterImage(purple,13,0,14,1)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*fNIVGNOh59uVGmXw.png" /><figcaption>Legend as cat images represent the hours.</figcaption></figure><p>I thought using Baser R would be difficult, on the contrary, Base R creates beautiful looking plots. Merging Base R plots with ggplots is also possible but I would rather use one to create a plot at a time for consistency.</p><p><em>The contents of external submissions are not necessarily reflective of the opinions or work of </em><a href="http://mavenanalytics.io/"><em>Maven Analytics</em></a><em> or any of its team members.</em></p><p><em>We believe in fostering lifelong learning and our intent is to provide a platform for the data community to share their work and seek feedback from the Maven Analytics data fam.</em></p><p><a href="https://medium.com/learning-data/how-to-get-your-work-published-by-learning-data-with-maven-analytics-7df21e466a3e?source=friends_link&amp;sk=020dfac485597d602e218968d9ffb395"><em>Submit your own writing here</em></a><em> if you&#39;d like to become a contributor.</em></p><p><em>Happy learning!</em></p><p><em>-Team Maven</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26c3eaddd0dd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learning-data/using-base-r-to-create-cat-images-for-day-04-waffle-themed-plot-for-the-2024-30-day-chart-challenge-26c3eaddd0dd">Using Base R to create Cat images for Day 04-Waffle themed plot for the 2024 30 Day Chart Challenge</a> was originally published in <a href="https://medium.com/learning-data">Learning Data</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My time at Posit::Conf 2023 in Chicago]]></title>
            <link>https://medium.com/illumination/my-time-at-posit-conf-2023-in-chicago-e9ed729ce76a?source=rss-c56b343acd90------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9ed729ce76a</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[experience]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[scholarship]]></category>
            <dc:creator><![CDATA[Simisani Ndaba]]></dc:creator>
            <pubDate>Sat, 16 Mar 2024 02:59:58 GMT</pubDate>
            <atom:updated>2024-12-17T21:49:02.447Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ys7QEQRe_2dhPmjAGmg4Kg.jpeg" /><figcaption>Entrance of the conference venue in Chicago. Photo by Author.</figcaption></figure><p>I had the opportunity to attend posit::conf 2023 in Chicago after applying for the Opportunity scholarship which is funding provided to individuals worldwide who are members of an underrepresented group so they can attend. These groups include people of color, those with disabilities, elders/older adults, LGBTQ folks, and women/minority genders.</p><p>There were 40 scholarship opportunities in 2023 and 20 previously. Opportunity Scholarships include conference registration, a room at the conference hotel, choice of an in-person workshop, travel support in the form of reimbursement for flight/train/bus/cab, and incidentals. I flew 23 hours in total to Chicago from Gaborone, Botswana and used a cab to get to the hotel and a train back to the airport after the conference which costed only $3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*06rk2wKlAy61FwkhcO9KwA.jpeg" /><figcaption>The Opportunity scholars at posit::conf 2023. Me (at the back) next to Hadley Wickham.</figcaption></figure><h3>In the beginning, there was rstudio::conf</h3><p>Posit::conf is a gathering where the data science community can engage in workshops, conference keynotes, and talks for two or more days. Participants can connect with peers, learn from experts, and expand their skills. Registration is necessary for livestreams, recordings, and networking.</p><p>The very first conference posit had was <a href="https://posit.co/blog/join-us-at-rstudioconf-2017/">rstudio::conf</a> which took place January 13th and 14th, 2017 in Orlando Florida. The subsequent years followed <a href="https://www.rstudio.com/resources/rstudioconf-2018/">rstudio::2018</a> in San Diego, <a href="https://www.rstudio.com/resources/rstudioconf-2019/">rstudio::2019</a> in Austin, Texas and <a href="https://youtube.com/playlist?list=PL9HYL-VRX0oTw-6TQri7Fr97G3IX0tHh8&amp;si=GHl98HjXYLCEoYNI">rstudio::2020</a> in San Francisco. In 2020, the COVID-19 pandemic safety restrictions forced everyone to meetup online turning <a href="https://posit.co/blog/enjoy-more-rstudio-global-2021/">rstudio::global 2021</a> into a virtual meetup with participants from around the world. That year, a member of R-Ladies Nairobi, <a href="https://shelkariuki.netlify.app/">Shelmith Kariuki</a>, gave a talk about the rKenyaCensus package that contains the 2019 Kenya Population Census which was carried out in August 2019. After the COVID-19 safety restrictions had been lifted, <a href="https://posit.co/blog/talks-and-workshops-from-rstudio-conf-2022/">rstudio::conf 2022</a> was in person in Washington DC.</p><p><a href="https://posit.co/blog/posit-conf-2023-registration-open/">Posit::conf 2023</a> was the first conference with the name change in Chicago from the 17th to 20th September. The event offered Birds of a Feather sessions for collaborations and took place at the Hyatt Regency Chicago which accommodated most of the participants with a few others staying in nearby hotels.</p><h3>Workshops</h3><p>The conference schedule had a two day workshop at the start of the conference and two days of conference keynotes and talks. Before attending, registering a workshop had to be made from a list of workshops, <a href="https://posit-conf-2023.github.io/workshops/">https://posit-conf-2023.github.io/workshops/</a>.</p><h4>Day 1</h4><p>I attended <a href="https://posit-conf-2023.github.io/managing-os-project/">It’s Not Just Code: Managing an Open Source Project</a> instructed by Tracy Teal, <a href="https://github.com/rfordatascience/tidytuesday?tab=readme-ov-file">TidyTuesday</a> organiser on day 1 and the <a href="https://github.com/posit-conf-2023/python-modeling">Machine Learning and Deep Learning with Python</a> on day 2 because of my interest in getting back into research in Machine and Deep learning.</p><p>I choose this workshop because at the time, I was working on the <a href="https://r-ladiesgaborone2021.quarto.pub/">R-Ladies Gaborone website</a> and wanted my chapter members to participate in the development of the website. I learnt a lot about <a href="https://reprex.tidyverse.org/">reprex</a>, reproducible examples found on project templates and managing realistic expectations especially from different project members.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AVfKjh5mQN83l-Bj.jpg" /><figcaption>after workshop selfie</figcaption></figure><h4>Day 2</h4><p>Before attending the other workshop on day 2, we had to install <a href="https://github.com/conda-forge/miniforge">Miniforge</a> for installing and running Python code. The experience was different because the instructor posted instruction assuming that everyone used Miniforge and had Mac computers, I use Windows OS. With some help from <a href="https://www.isabelizimm.me/">Isabel Zimmerman</a> 💜, I managed to setup my machine and was ready for the workshop. The workshop consisted of Data Processing, Evaluating &amp; tuning machine learning classifiers, using PyTorch, Finetuning Large Language Models and Training deep neural networks.</p><h3>Talks</h3><p>One of the keynote talks that was impressive was <a href="https://www.youtube.com/watch?v=tUdrwEIvEyk">R Not only in Production</a> presented by Kara Woo. She shared what her team had learnt from successfully integrating R in all areas of their company’s operations. InsightRX is a precision medicine company whose goal is to ensure that each patient receives the right drug at the optimal dose. At InsightRX, R is a first-class language that’s used for purposes ranging from customer-facing products to internal data infrastructure, new product prototypes, and regulatory reporting. Using R in this way has given them the opportunity to forge fruitful collaborations with other teams in which they can both learn and teach.</p><p>There were a load of talks with one of them being the Github Copilot integration with Rstudio demonstration with Tom Mock. This feature automatically automatically fills a code statement. The following link shows a links to all the keynotes and talks held at the conference, <a href="https://posit.co/blog/keynotes-and-talks-at-posit-conf-2023/">https://posit.co/blog/keynotes-and-talks-at-posit-conf-2023/</a>.</p><p>Another talk that was interesting to me was R-Ladies Global team co-lead, Riva Quiroga’s talk on <a href="https://www.youtube.com/watch?v=awTzbYXTlSc">Sustainable growth of global communities: RLadies’ next ten years</a> where she talked about how they are planning the development of R-Ladies for the next ten years. The talk focused on the sustainable management of an ever-growing community. She presented the organisation’s most recent efforts at documenting workflows, making data-driven decisions, and automating tasks that allow volunteers to focus their time where it is most needed.</p><h3>Conference Communication</h3><p>Over 100 attendees from different R communities were together in one space. The conference used <a href="https://discord.com/">Discord</a> where all attendees had to sign up for an account and participate in the channels created in the app. The app was a cool way to find out what everyone was going to do later that day and planned functions by the companies in attendance. The app was active until a few days after the conference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HilCr8dqXfEwzzoeUnENEQ.png" /><figcaption>Discord marketing logo</figcaption></figure><h3>Awesome R-Ladies</h3><p>On the last day of the conference, R-Ladies Chicago and R-Ladies Global co-hosted an R-Ladies meetup at the conclusion of the conference. This was a chance to meet in-person all the other R-Ladies Chapters and people who I had communicated with on the Slack channel.</p><p>In attendance was the R Ladies global team, some of the R-Ladies chapters and participants from the conference. The meetup started with announcements from the global team and R-Ladies chapter member testimonials of their experiences. Then, a <a href="https://rladies.org/news/2023-10-09-positconf-chicago-meetup/">Q &amp; A session</a> was also done with the rest of the undiscussed questions posted the their website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AYex5wr94i4NQo3FkPKb-g.png" /><figcaption>R-Ladies chapter members at posit::conf 2023</figcaption></figure><p>I definitely recommend attending posit::conf to meet with tech innovators and make connections with like-minded Data Scientists and enthusiast. Not everybody you will meet will know the same thing as you do and you may find yourself contributing in some way to their projects. The next posit::conf 2024 will be held from 12th — 14th August in Seattle, Washington. If you think you can’t afford it, apply for the opportunity scholarship like I did and you will find yourself flying off to meet the R and Python community.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9ed729ce76a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/illumination/my-time-at-posit-conf-2023-in-chicago-e9ed729ce76a">My time at Posit::Conf 2023 in Chicago</a> was originally published in <a href="https://medium.com/illumination">ILLUMINATION</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Insight into Teaching R Programming in Botswana]]></title>
            <link>https://medium.com/learning-data/an-insight-into-teaching-r-programming-in-botswana-c10ead610fb4?source=rss-c56b343acd90------2</link>
            <guid isPermaLink="false">https://medium.com/p/c10ead610fb4</guid>
            <category><![CDATA[r]]></category>
            <category><![CDATA[women]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[botswana]]></category>
            <category><![CDATA[teaching]]></category>
            <dc:creator><![CDATA[Simisani Ndaba]]></dc:creator>
            <pubDate>Wed, 28 Feb 2024 21:02:14 GMT</pubDate>
            <atom:updated>2024-02-29T01:56:24.472Z</atom:updated>
            <content:encoded><![CDATA[<p>A case at the Botswana International University of Science and Technology (BIUST) in Botswana.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kxgphHvreYPgfZGW" /><figcaption>Photo by <a href="https://unsplash.com/@airfocus?utm_source=medium&amp;utm_medium=referral">airfocus</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong><em>*This interview was conducted on the 9th of August 2023.*</em></strong></p><p><a href="https://r-ladiesgaborone2021.quarto.pub/">R -Ladies Gaborone</a> recently talked to <a href="https://www.linkedin.com/in/chipo-zidana-58626923/">Dr. Chipo Zibana</a> who is a trained statistician with a passion to bring data driven solutions for sustainable development through engagement, collaboration and consulting services. Her long term goal is to be able to understand different complex social and health problems using statistical methods such as, Machine learning, Data Mining, Big Data and Statistical Modelling among others. Her research and publications focus on the prediction and understanding of disease epidemiology and health for COVID-19, HIV, heart disease, Tuberculosis and breast cancer.</p><p>This is her experience teaching R programming at the <a href="https://www.biust.ac.bw/">Botswana International University of Science and Technology (BIUST)</a>. BUIST is the second largest university in Botswana, established in 2006, was envisaged to be one of the key drivers in bringing about a fundamental transformation of Botswana as a catalyst for economic and social development. BIUST was established mainly to transform the country’s economy from a resource based to a knowledge-based economy.</p><p><strong>Hi Doc., first of all, what is your professional background and how long have you been using R or any other statistical analysis tool for Data analysis, Data visualization or other Data science workflow.</strong></p><p><em>I am a lecturer in Statistics with a PhD in Statistics and employed by BIUST in the department of Mathematics and Statistical Sciences since November 2019. I concurrently serve as Assistant coordinator for our Departmental statistical services unit since its inception in June 2021. I have been using R for my research since 2012 and started incorporating R in my statistical teaching modules since 2017 whilst in Zimbabwe and at BIUST since 2020. Besides R, I also use SPSS and STATA for teaching and Statistical consultations on data analysis, data visualization depending on the domain expert.</em></p><p><strong>How long have you been teaching R at BIUST?</strong></p><p><em>I have been teaching R since I joined BIUST almost 4 years ago. I am one of the first instructors to teach using R for most of my assigned modules in statistics both at undergraduate and postgraduate levels including, statistical computing, Linear regression, time series Analysis, among others.</em></p><p><strong>Have you used R in any of your research studies, how have you used it, particularly, which packages have you used and what have you used them for?</strong></p><p><em>Yes I have used R in my research. I have used it both as a programming platform and used variety of packages for data visualization, mixture models, time series analysis, survival analysis and machine learning among others. In particular some of the packages I have used includes </em><strong><em>tidyverse</em></strong><em> , </em><strong><em>flexmix</em></strong><em>, </em><strong><em>cluster</em></strong><em>, </em><strong><em>caret</em></strong><em>, </em><strong><em>nnet</em></strong><em>, </em><strong><em>xts</em></strong><em>, </em><strong><em>astsa</em></strong><em>, </em><strong><em>fpp3</em></strong><em>, </em><strong><em>timetk</em></strong><em>, </em><strong><em>survival</em></strong><em>,</em><strong><em> ggsurvfit</em></strong><em>, and many more.</em></p><p><strong>What are students attitude towards R and is it gaining interest among scholars?</strong></p><p><em>Initially students were resistant and hesitant to learning R, this has however, improved slightly over the years. So, I now get few students who are very interested as they are well versed with the data science trends. Albeit at BIUST, the acceptance and interest of R is very low compared to other universities I have taught using R.</em></p><p><strong>How often have you seen R be used for machine learning experiments and what is the difference between R versus Python documentation?</strong></p><p><em>I used R more for machine learning than Python. However, I think that researchers from Math and Statistics use R than Python more in machine learning compared to computers scientists and other business analytics platforms. R documentation tend to be smaller for me compared to Python and it more field specific in my opinion.</em></p><p><strong>Where and how have you seen R being used in the Botswana industry?</strong></p><p><em>I have not seen much of it being used in industry in Botswana although I have used it for few consultative assignments with some few companies in the health sector. By and large most companies I have interacted with uses SPSS or excel in their analysis.</em></p><p><strong>How can R awareness be increased in Botswana?</strong></p><p><em>I think there should be advocacy for schools and universities to incorporate it in their curriculum. Secondly, the advantages of using R are huge but barely unknown to many and industry. Once industry is aware then usage can improve hence awareness will also go a long way.</em></p><p><strong>Are community organizations enough for raising R programming awareness for Data analysis?</strong></p><p><em>They are in my opinion. However, a well united and coordinated approach maybe more helpful.</em></p><p><strong>What are the challenges</strong> <strong>in teaching R programming?</strong></p><p><em>The environment itself sometimes doe not somehow support teaching R, for example;</em></p><ol><li><em>The laboratories are shared and may not have proper infrastructure (i.e. computers) needed.</em></li><li><em>Not much time is normally given to programming R courses due to limited resources and/or lack of policy to such courses.</em></li><li><em>Students generally lack interest due to lack of knowledge on the benefits and lack of encouragement from departments.</em></li><li><em>The programming space tends to be a challenging environment for non STEM students in general.</em></li></ol><p><strong>Are you the only woman teaching R at BUIST?</strong></p><p><em>I am not the only one, there are other two women. Although, of the two of them, one isn’t that consistent as she just started last academic year (2022).</em></p><p><strong>Do you collaborate with other lecturers from other schools who teach R, if you do, how do you do it and what do you work on?</strong></p><p><em>I have not done teaching collaboration since I joined BIUST. Although, I am l working on some possibilities.</em></p><p><strong>Are there any clubs for students to participate in to work together to improve their skills in R? If there are, may you please share their socials and contacts to let people get in touch with them.</strong></p><p><em>Nothing is in place as yet.</em></p><p><strong>What projects are you involved in?</strong></p><p><em>I have three projects I am working on.</em></p><ol><li><em>Antibiotic resistance prediction.</em></li><li><em>Malaria,</em></li><li><em>Botswana strategies to curb COVID-19</em></li></ol><p><strong>What kind of projects do you give your students to work on?</strong></p><p><em>Mainly Data analysis, Data visualisation and Machine Learning projects.</em></p><p><strong>As R programming is not well known in Botswana, what techniques do you use to keep students actively involved and motivated during a lesson?</strong></p><p><em>I use hands on techniques mostly where we do it together, debugging and I comment on the expectations as we go. This has been impactful as students participate, they do not feel left out. I should acknowledge though that BUIST numbers are small, so it works well. I also have motivation classes on “Why R” beginning of my classes. This lists R as being financially, academically and advantageous career wise.</em></p><p><strong>Thank you for the insight Dr. the approach towards teaching R is now clear in understanding how the skill set comes to be.</strong></p><p><em>Always welcome.</em></p><p>Find out more about <a href="https://research.biust.ac.bw/en/persons/chipo-zidana">Dr.Chipo Zibana</a> and follow R-Ladies Gaborone activities on @<a href="https://fosstodon.org/@RLadiesGaborone">RLadiesGaborone on fosstodon</a>, @<a href="https://twitter.com/RLadiesGaborone">RLadiesGaborone on X</a>, <br> and subscribe to their <a href="https://medium.com/www.youtube.com/@r-ladiesgaborone8407">YouTube channel/@r-ladiesgaborone8407</a>.</p><p><em>The contents of external submissions are not necessarily reflective of the opinions or work of Maven Analytics or any of its team members.</em></p><p><em>We believe in fostering lifelong learning and our intent is to provide a platform for the data community to share their work and seek feedback from the Maven Analytics data fam.</em></p><p><em>Happy learning!</em></p><p><em>-Team Maven</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c10ead610fb4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learning-data/an-insight-into-teaching-r-programming-in-botswana-c10ead610fb4">An Insight into Teaching R Programming in Botswana</a> was originally published in <a href="https://medium.com/learning-data">Learning Data</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Datawizard: An introduction to the dplyr dependency free R package for data wrangling]]></title>
            <link>https://medium.com/illumination/datawizard-an-introduction-to-the-dplyr-dependency-free-r-package-for-data-wrangling-8102f1ca2f62?source=rss-c56b343acd90------2</link>
            <guid isPermaLink="false">https://medium.com/p/8102f1ca2f62</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[data-manipulation]]></category>
            <dc:creator><![CDATA[Simisani Ndaba]]></dc:creator>
            <pubDate>Mon, 15 Jan 2024 20:17:05 GMT</pubDate>
            <atom:updated>2024-01-15T20:17:05.527Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mKfT4jGnIqVqBe8c" /><figcaption>Photo by <a href="https://unsplash.com/@emrecan_arik?utm_source=medium&amp;utm_medium=referral">emrecan arık</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>There are a few dependency free R packages that are commonly used for data wrangling such as poorman. The other being, Datawizard. Dependancy free R packages are packages do not depend on the functionality of another R package. I discovered Datawizard when researching for my talk on <a href="https://www.youtube.com/watch?v=gZ517exPzX0&amp;t=1782s">R packages for data cleaning</a>. The latest version of Datawizard 0.9.1 was released on the 9th of September 2023.</p><p><strong>What is Datawizard</strong></p><p>Datawizard is used for data transformation and statistic operations and is also part of the <a href="https://easystats.github.io/easystats/">easystats collection</a>. Although Datawizard is easily overshadowed by dplyrs’ popularity, it can be the next alternative to dplyr for datra wrangling. The Datawizard package was developed by <a href="https://sites.google.com/site/indrajeetspatilmorality/">Indrajeet Patil</a>, <a href="https://www.etiennebacher.com/">Etienne Bacher</a>, <a href="https://dominiquemakowski.github.io/">Dominique Makowski</a>, <a href="https://github.com/strengejacke">Daniel Lüdecke</a>, <a href="https://home.msbstats.info/">Mattan S. Ben-Shachar</a> and <a href="https://wiernik.org/">Brenton M. Wiernik</a>.</p><p>Apart from the function similarities with dplyr for <strong>merging, arranging, grouping </strong>and <strong>unique values. </strong>The difference is in the Datawizard function naming which begins with dataand an underscore after, followed by the function action at the end, data_extract().</p><blockquote>This article provides a short tutorial on functions from the Data wizard package.</blockquote><p>Lets look at a few of the Datawizard functions for data wrangling using a dataset that can show us how the functions work.</p><ol><li><strong>Installing the Datawizard package</strong></li></ol><p>Begin by installing and loading the Datawizard package.</p><pre>#Installing and loading the Datawizard package<br>install.packages(&quot;datawizard&quot;)<br>library(datawizard)</pre><p>2. <strong>Read the dataset using</strong> data_read()</p><p>The data_read() function imports data from various file types. It is a small wrapper around haven::read_stata(), readxl::read_excel() and data.table::fread() .</p><pre>#read the dataset using the data_read() function<br>house_price &lt;- data_read(&quot;https://raw.githubusercontent.com/sndaba/RPackagesForDataCleaning/main/NYC_2022.csv&quot;)<br>View(house_price) #output dataset sample seen below</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S-vwvJuK0w4-nxcefbjACg.png" /><figcaption>sample of the dataset. Photo by Author.</figcaption></figure><p><strong>3. Peek at the values and type of variables using </strong>data_peek()</p><p>The function creates a table data frame, showing all column names, variable types and the first values (as many as fit into the screen).</p><pre>#data_peek shows a summary of the each variables&#39; details<br>data_peek(house_price)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e4_p0YgV_4fGyQg3rE6zoA.png" /><figcaption>data frame summary showing the type of each variable and examples of values in a variable. Photo by Author.</figcaption></figure><p><strong>4. Statistical summary using </strong>data_codebook()</p><p>data_codebook() generates codebooks from data frames, i.e. overviews of all variables and some more information about each variable (like labels, values or value range, frequencies, amount of missing values).</p><pre>#generate an overview of statistics of missing, number of values, frequency of a value<br>(code &lt;- data_codebook(house_price))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A06_JCCLFObZjBU9l0N5LQ.png" /><figcaption>Output from codebook().Photo by Author.</figcaption></figure><p><strong>5. Replacing missing values with </strong>convert_na_to()</p><p>Replace missing values in a variable or a data frame usingconvert_na_to().</p><pre>#missing data for numeric and characters<br>house_price_missing &lt;- house_price &lt;- convert_na_to(house_price, replace_num = 0, replace_char = &quot;missing&quot;)</pre><p><strong>6. Searching for columns</strong></p><p>find_columns() returns column names from a data set that match a certain search pattern, while get_columns() returns the found data.</p><pre>#finding columns<br>find_columns(house_price_missing, starts_with(&quot;neighbourhood&quot;))<br><br>#output shows columns at the bottom<br>[1] &quot;neighbourhood_group&quot; &quot;neighbourhood&quot;</pre><pre>#get_columns()<br>get_columns(house_price_missing, starts_with(&quot;neighbourhood&quot;))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*xOq_shVodpQMNRCo5fd4iw.png" /><figcaption>get_columns() output shows values of the columns. Photo by Author.</figcaption></figure><p><strong>7. Look for columns based on pattern name with </strong>data_seek()</p><p>The data_seek() looks for variables in a data frame, based on patterns that either match the variable name (column name), variable labels, value labels or factor levels. Matching variable and value labels only works for “labelled” data, i.e. when the variables either have a label attribute or labels attribute.</p><pre>#looks for columns even with a typo. &quot;hot&quot; is similar to &quot;host&quot; or &quot;hood&quot;<br>data_seek(house_price, &quot;hot&quot;, fuzzy = TRUE)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*_1foHMvi9TV1KqT-bzILVw.png" /><figcaption>list of columns that a close to the label “hot”. Photo by Author.</figcaption></figure><p>8. <strong>Remove columns with</strong> data_remove()</p><p>The data_remove() removes columns from a data frame. All functions support select-helpers that allow flexible specification of a search pattern to find matching columns, which should be reordered or removed.</p><pre>#remove data.frame,column<br>house_price &lt;- datawizard::data_remove(house_price, &quot;latitude&quot;, &quot;longitude&quot;) <br><br>#remove data.frame,column<br>house_price &lt;- datawizard::data_remove(house_price,&quot;id&quot;)       </pre><p><strong>9.</strong> <strong>Column reordering with </strong>data_reorder()</p><p>The data_reorder() will move selected columns to the beginning of a data frame. The other column ordering function, data_relocate() (<em>not covered in this article</em>), will reorder columns to specific positions, indicated by before or after.</p><pre>#add the names of the cols in the new order<br>house_price &lt;- house_price_missing &lt;- datawizard::data_reorder(house_price,c(&quot;host_id&quot;,&quot;name&quot;)) <br><br>#add the names of the cols in the new order<br>house_price &lt;- datawizard::data_reorder(house_price,c(&quot;host_name&quot;,&quot;name&quot;)) <br><br>#add the names of the cols in the new order<br>house_price &lt;- datawizard::data_reorder(house_price,c(&quot;host_id&quot;,&quot;host_name&quot;)) </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Equz9WeiVthWQey8ewm2g.png" /><figcaption>columns reordered. Photo by Author.</figcaption></figure><p><strong>10. </strong>Rename some columns using<strong> </strong>data_rename()</p><pre>#the column &quot;price&quot; will change to &quot;house_price&quot;<br>house_price &lt;- datawizard::data_rename(house_price,&quot;price&quot;,&quot;house_price&quot;) </pre><p><strong>11. Filtering and Matching with</strong> data_filter()and data_match()</p><p>Both functions return a filtered (or sliced) data frame or row indices of a data frame that match a specific condition. data_filter() works like data_match(), but works with logical expressions or row indices of a data frame to specify matching conditions.</p><pre>#match rows following variable conditions with data_match()<br>View(data_match(house_price, data.frame(neighbourhood_group = &quot;Brooklyn&quot;)))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*EBt_gWvqpUAiCUcox2WAIw.png" /><figcaption>data frame subset with rows relating to neighbourhood_group column set to “Brooklyn”. Photo by Author.</figcaption></figure><pre>#filtering using logical expressions<br>View(data_filter(house_price, room_type == &quot;Private room&quot; &amp; house_price &gt; 120000))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*EBigFjv4NvQiN7obw3f7vg.png" /><figcaption>data frame subset with room_type set to “Private room” and house_price &gt; 120000. Photo by Author.</figcaption></figure><p><strong>In Summary<br></strong>The Datawizard package is an all purpose Data Science package where you can get operations for data formation, statistical summaries and data cleaning.</p><p><strong>Continue reading on Datawizard and coding on </strong><a href="https://github.com/easystats/datawizard">Datawizard repository</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8102f1ca2f62" width="1" height="1" alt=""><hr><p><a href="https://medium.com/illumination/datawizard-an-introduction-to-the-dplyr-dependency-free-r-package-for-data-wrangling-8102f1ca2f62">Datawizard: An introduction to the dplyr dependency free R package for data wrangling</a> was originally published in <a href="https://medium.com/illumination">ILLUMINATION</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[R packages used in Botswana Health Care Data Science Research]]></title>
            <link>https://medium.com/illumination/r-packages-used-in-botswana-health-care-data-science-research-0a4c6dd19c2b?source=rss-c56b343acd90------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a4c6dd19c2b</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[botswana]]></category>
            <category><![CDATA[r-package]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[healthcare]]></category>
            <dc:creator><![CDATA[Simisani Ndaba]]></dc:creator>
            <pubDate>Thu, 26 Oct 2023 08:19:39 GMT</pubDate>
            <atom:updated>2024-01-20T08:29:03.460Z</atom:updated>
            <content:encoded><![CDATA[<p>Considering the many R packages released each year, this article will look at the packages used in Health Care Data Science Research in Botswana from 2018 to 2022.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LBpvVzyUGO3mplDz" /><figcaption>Photo by <a href="https://unsplash.com/@hubane?utm_source=medium&amp;utm_medium=referral">Justice Hubane</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>This post won’t be explaining functions and code, just an explanation of the packages used.</blockquote><p>M y home country Botswana is landlocked in Southern Africa, home to dangerous wildlife like Lions, Elephants, <a href="https://www.youtube.com/watch?v=NYZ6X62WD-M">Basarwa </a>(affectionately known as “Bushmen”) and swamplife . Little is known about her use of R programming for Data Science research particularly in Health care.</p><p>Health care research in Botswana aims to identify, evaluate and improve general health conditions. The data collected for descriptive analysis from different regions of Botswana help to understand the actuality of on going treatment distribution and health institution management in order to improve Health care services.</p><p>The following R packages were used in most Health care Data Science research.<br>1. forecast<br>2. oce <br>3. ggplot2<br>4. SNP Relate<br>5. inctools<br>6. APE<br>7. adephylo<br>8. iGraph</p><h4><strong>1. forecast</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/120/1*0syqFThpMp6gBbiBay4Cnw.png" /><figcaption>forecast package developed by <a href="http://robjhyndman.com/">Rob Hyndman</a></figcaption></figure><p>The <a href="https://pkg.robjhyndman.com/forecast/">forecast</a> package was developed for automatic time series forecasting. It is part of a forecasting bundle which contains the fma, Mcomp and expsmooth packages developed by Rob Hyndman.</p><p>The forecast package contains functions for:</p><ul><li>Univariate forecasting</li><li>Automatic forecasting using exponential smoothing</li><li>ARIMA models</li><li>Theta method</li><li>Cubic splines</li><li>Other common forecasting methods</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*71GHknvPYfLmjiDJeaOFvQ.png" /><figcaption>Four time series showing point forecasts. Image by <a href="https://www.jstatsoft.org/article/view/v027i03">Rob Hynman and Yeasmin Khandakar</a>.</figcaption></figure><h4>2. o<strong>ce</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F2_SHWNwOb6AFmDrzPEebA.png" /></figure><p>The <a href="https://cran.r-project.org/web/packages/oce/vignettes/A_oce.html">oce</a> package is used for reading captured data from Oceanographic instruments. Initially, designed for real-world applications, oce supports a broad range of practical work too.</p><p>Even though there are no oceans and seas in Botswana, the package makes it easy for analysing details of calculations, discipline specific file formats, and plots.</p><p>Generic functions take care of general operations such as sub-setting and plotting data, while specialized functions address more specific tasks such as Hydrographic analysis and ADCP coordinate transformations. According to <a href="https://link.springer.com/book/10.1007/978-1-4939-8844-0">Dan.E. Kelley</a>, it’s easy to document work done with oce because its functions automatically update processing logs stored within its data objects.</p><h4>3. ggplot2</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/209/0*ngheR-4Q4iSofj3E.jpg" /></figure><p>The most well known of the packages in the list is <a href="https://ggplot2.tidyverse.org/">ggplot2</a>. Ggplot2 is used for making plots and annotations for data visualisation. The different types of plots built using ggplot2 can range from dendrograms, network graphs and histograms. Ggplot2 can improve the quality of the graphics just from changing fonts, sizes and images for attractive data reading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6q3f9hyo1c7P6Rvk1AfR8g.png" /><figcaption>exon definition and coding variant annotation developed using ggplot2. Imgae by <a href="https://www.cell.com/ajhg/pdf/S0002-9297(18)30099-5.pdf">Rethabile et al (2018)</a></figcaption></figure><h4>4. SNP Relate</h4><p><a href="https://www.bioconductor.org/packages/release/bioc/html/SNPRelate.html">SNP Relate</a> is used in Genomic exploration for Principle Component Analysis (PCA) and relatedness analysis using identity-by-descent measures.</p><p>It was developed for multi-core symmetric multiprocessing computer architectures. The SNP Relate package provides computation for Single-Nucleotide Polymorphism (SNP) data in Genome-wide association studies.</p><p>Unfortunately, like other packages, the <a href="https://cran.r-project.org/web/packages/SNPRelate/index.html">SNP Relate documentation</a> is no longer on CRAN but can be found from recommended links as archives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*DdhcDvWcxg-rcTPOZbN1FA.png" /><figcaption>Principal Component Analysis plot analysis using 1000 Genomes and Southern African Populations. Image by <a href="https://www.cell.com/ajhg/pdf/S0002-9297(18)30099-5.pdf">Rethabile et al (2018)</a></figcaption></figure><h4>5. inctools</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*UF8xuND_RW6vFUlceDM9wA.png" /><figcaption>inctools graph showing showing HIV incidence from biomarker data. Image by <a href="https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0203638">Grebe et al (2018</a>)</figcaption></figure><p>The <a href="https://rdrr.io/cran/inctools/f/vignettes/Introduction.Rmd">inctools</a> package is used for estimating prevalence from biomarker data in cross-sectional checks and for calibrating tests for any recent infection.</p><p>Originally developed to measure HIV infection prevalence in a certain population, it gives state of the art functionality to support large aspects of population position prevalence surveillance. The alleviation for the work of the package came from the challenges associated with estimating population position HIV prevalence.</p><h4><strong>6. APE</strong></h4><p><a href="https://cran.r-project.org/web/packages/ape/index.html">APE</a>, which stands for Analyses of Phylogenetics and Evolution, is used in molecular evolution and phylogenetics. The APE package uses phylogenetic and genealogical trees as input when making statistical analyses.</p><p>The APE package has functions for working on phylogenetic trees as well as phylogenetic and evolutionary analysis such as population genetic and comparative methods.</p><p>APE takes advantage of the numerous R functions for statistics, graphics and also provides a flexible framework for developing and implementing more statistical methods for the analysis of evolutionary processes.</p><h4>7. adephylo</h4><p>The <a href="https://cran.r-project.org/web/packages/adephylo/index.html">adephylo</a> package is designed for the analysis of comparative evolutionary data. Phylogenetic comparative methods are aimed at accounting for, or removing the effects of phylogenetic signal in the analysis of biological traits.</p><h4><strong>8. iGraph</strong></h4><p>The<a href="https://cran.r-project.org/web/packages/igraph/index.html"> iGraph</a> package provides tools for plotting networking graphs. It can handle huge graphs with millions of vertices, edges and it’s also suitable for grid computing. It contains routines for:</p><ul><li>Creating, manipulating and imaging networks.</li><li>Calculating colourful structural parcels.</li><li>Importing from and exporting to colourful train formats.</li></ul><p>While using GNU( GNU’s Not Unix! software), R and Python, it supports fast development and fast prototyping.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*ko53k9nPhv5rJO9Q7guPtg.png" /><figcaption>The extent of HIV lineage spread between and across communities in Botswana. Image by <a href="https://academic.oup.com/jid/article/222/10/1670/5850911">Novitsky et al (2020)</a>.</figcaption></figure><p>If you like, you can find me on <a href="http://www.linkedin.com/in/simisani-ndaba-90843650">Linkedin</a> and <a href="https://mastodon.social/@simisani">Mastodon</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a4c6dd19c2b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/illumination/r-packages-used-in-botswana-health-care-data-science-research-0a4c6dd19c2b">R packages used in Botswana Health Care Data Science Research</a> was originally published in <a href="https://medium.com/illumination">ILLUMINATION</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>