<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Karlo Angelo Jose</title>
    <description>The latest articles on DEV Community by Karlo Angelo Jose (@karlo_angelojose_2aacad1).</description>
    <link>https://dev.to/karlo_angelojose_2aacad1</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3083969%2F47c72a97-a142-4ab0-b691-8a37ffd3fd4e.webp</url>
      <title>DEV Community: Karlo Angelo Jose</title>
      <link>https://dev.to/karlo_angelojose_2aacad1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/karlo_angelojose_2aacad1"/>
    <language>en</language>
    <item>
      <title>A Beginner's Guide to Statistical Analysis using RStudio</title>
      <dc:creator>Karlo Angelo Jose</dc:creator>
      <pubDate>Thu, 24 Apr 2025 14:32:08 +0000</pubDate>
      <link>https://dev.to/up_min_sparcs/statistical-analysis-using-rstudio-3h7c</link>
      <guid>https://dev.to/up_min_sparcs/statistical-analysis-using-rstudio-3h7c</guid>
      <description>&lt;p&gt;&lt;strong&gt;This article was co-authored by &lt;a class="mentioned-user" href="https://dev.to/mjgnzls"&gt;@mjgnzls&lt;/a&gt; (Jhaye Marie Gonzales)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;INTRODUCTION&lt;/strong&gt; &lt;br&gt;
     Have you ever wondered how YouTube knows what you’ll want to watch next? Or how online shopping apps know exactly what you would want to buy? These are all made possible because of data–more specifically, data analysis. Better decisions and more intelligent systems are made possible by statistical analysis, which uncovers patterns in data. Luckily, we have R, a powerful programming language designed for statistical computation, and RStudio, its user-friendly and intuitive workspace, which greatly simplifies the process of learning and using data analysis.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WHAT IS R?&lt;/strong&gt;&lt;br&gt;
     For starters, R is a free, open-source programming language and software environment specifically designed for statistical computing, data analysis, and graphical visualization. Developed in the 1990s by Ross Ihaka and Robert Gentleman, R has grown into one of the most widely used tools in data science, academic research, and industry analytics. But Why Use R? The language itself is designed specifically for statistical analysis offering a beginner-friendly syntax and packages that makes it ideal for tasks that include data modeling, cleaning and graphing. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WHAT IS RSTUDIO?&lt;/strong&gt;&lt;br&gt;
     RStudio is a powerful and user-friendly Integrated Development Environment (IDE) made specifically for working with R. When using R, it serves as a workspace, which greatly improves the efficiency and ease of writing, testing, and visualizing code. Whether you’re developing statistical models or analyzing data, RStudio offers an organized and user-friendly interface that improves the entire process. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;INSTALLATION PROCESS FOR R AND RSTUDIO&lt;/strong&gt;&lt;br&gt;
To help you get started with R programming, here is a detailed step-by-step process on how to install R and RStudio to your very own devices!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;R Installation&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;1. Visit the R project via &lt;a href="http://www.r-project.org/" rel="noopener noreferrer"&gt;www.r-project.org/&lt;/a&gt; .&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;2. Click CRAN located under Download.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnyz4vn89vjuz298i16fz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnyz4vn89vjuz298i16fz.png" alt="Download Location" width="800" height="408"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;3. Click on &lt;a href="https://cloud.r-project.org/" rel="noopener noreferrer"&gt;https://cloud.r-project.org/&lt;/a&gt; .&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fafa7zya3selr6mqd7qqx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fafa7zya3selr6mqd7qqx.png" alt="0-Cloud" width="800" height="275"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;4. Under Download and Install R, choose what operating system you are currently using.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy43t3vye6izhqbkti4y3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy43t3vye6izhqbkti4y3.png" alt="R Download" width="800" height="374"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;5. Run the .exe setup file and wait for the installation process to finish.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;RStudio Installation&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;1. Visit Posit via &lt;a href="https://posit.co/downloads/" rel="noopener noreferrer"&gt;https://posit.co/downloads/&lt;/a&gt; .&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;2. Click Download RStudio.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fya08an34skoxzt1lhnpi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fya08an34skoxzt1lhnpi.png" alt="Download Location" width="800" height="383"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;3. Scroll down until you see the download list.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu4cyd3dd0mwgkt6lxm2s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu4cyd3dd0mwgkt6lxm2s.png" alt="Download List" width="800" height="355"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;4. Click the download for your operating system. The setup file should automatically start downloading once clicked.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;5. Run the .exe setup and wait for the installation process to finish.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;RSTUDIO'S WORKSPACE&lt;/strong&gt;&lt;br&gt;
     When installed, this is what your RStudio should look like. Let’s break each one of them down to not get confused.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faaa4427qquoebeam3lny.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faaa4427qquoebeam3lny.jpg" alt="RStudio Interface" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Source Editor (Top-Left)&lt;/strong&gt;&lt;br&gt;
     This serves as your coding workspace for writing and editing R scripts, R Markdown files, or Shiny apps, featuring syntax highlighting, code execution shortcuts, and multi-file tab management.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flncuakkq9zvtxkswqyzg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flncuakkq9zvtxkswqyzg.png" alt="Source Editor" width="764" height="453"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Console (Bottom-Left)&lt;/strong&gt;&lt;br&gt;
     The interactive command center where you run R code directly, view immediate results or errors, and use autocompletion for efficiency.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffibzk0g329rw9gxmlyps.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffibzk0g329rw9gxmlyps.png" alt="Console" width="760" height="331"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Environment and History (Top-Right)&lt;/strong&gt;&lt;br&gt;
     The Environment tab tracks active variables and datasets for quick inspection, while the History tab logs past commands for easy re-execution.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgydiqttp9lz59k29nklm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgydiqttp9lz59k29nklm.png" alt="Environment and History" width="800" height="276"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Tools (Bottom-Right)&lt;/strong&gt;&lt;br&gt;
     A multi-tool pane for file navigation, plot display, package management, and accessing R’s documentation and tutorials.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftp4ljd47j33l6yilldtw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftp4ljd47j33l6yilldtw.png" alt="Tools" width="662" height="479"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BASICS OF R PROGRAMMING&lt;/strong&gt;&lt;br&gt;
Before diving into the different statistical tools, let's first get to know the basic syntax used in R.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Output&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;1a. Text&lt;/em&gt;&lt;br&gt;
To display text, enclose your text in &lt;strong&gt;single&lt;/strong&gt; or &lt;strong&gt;double quotes&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj4w01k2kkqjemiclimr8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj4w01k2kkqjemiclimr8.png" alt="Text Output" width="521" height="120"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;1b. Numbers&lt;/em&gt;&lt;br&gt;
To display numbers, simply type them (no quotes needed).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxd0nb3tss2oz1amvtv21.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxd0nb3tss2oz1amvtv21.png" alt="Numbers Output" width="362" height="117"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Comments&lt;/strong&gt;&lt;br&gt;
To add comments, add a &lt;strong&gt;#&lt;/strong&gt; before your comment/note. R ignores lines after detecting a hashtag symbol.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnbm8e6qdg2g3q2ojpd7s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnbm8e6qdg2g3q2ojpd7s.png" alt="Comments" width="647" height="101"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Basic Arithmetic Operations&lt;/strong&gt;&lt;br&gt;
To perform basic arithmetic operations, use standard math operators:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;+ (Addition)&lt;/li&gt;
&lt;li&gt;- (Subtraction)&lt;/li&gt;
&lt;li&gt;* (Multiplication)&lt;/li&gt;
&lt;li&gt;/ (Division)&lt;/li&gt;
&lt;li&gt;^ (Exponentiation)&lt;/li&gt;
&lt;li&gt;% (Modulus)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhwfuivxp9v8usnaij2h0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhwfuivxp9v8usnaij2h0.png" alt="Arithmetic Operations" width="385" height="239"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Variables and Assignment&lt;/strong&gt;&lt;br&gt;
To declare and assign values to variables, first type the name of the variable you want to add. Next, assign a value by using &lt;strong&gt;&amp;lt;-&lt;/strong&gt; then typing the value. Remember to use single or double quotes when assigning text to a variable.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frsw5guu6anbjnp0gqp22.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frsw5guu6anbjnp0gqp22.png" alt="Variable Declaration and Assignment" width="508" height="158"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Vectors&lt;/strong&gt;&lt;br&gt;
To create a vector, create a variable and assign &lt;strong&gt;c()&lt;/strong&gt; as its value.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fizyeyz2fa8p0dwigxkai.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fizyeyz2fa8p0dwigxkai.png" alt="Vectors" width="550" height="172"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Lists&lt;/strong&gt;&lt;br&gt;
To create a list, create a variable and assign &lt;strong&gt;list()&lt;/strong&gt; as its value. Remember that a list can store mixed data types.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp0q6bpmy4ro8xrv99rkj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp0q6bpmy4ro8xrv99rkj.png" alt="List" width="800" height="351"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. Data Frames (tables)&lt;/strong&gt;&lt;br&gt;
To create tables, create a variable and assign &lt;strong&gt;data.frame()&lt;/strong&gt; as its value.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8io2gogx2c20147cd1oe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8io2gogx2c20147cd1oe.png" alt="Table" width="623" height="225"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;More information about R’s syntax can be found at &lt;a href="https://www.w3schools.com/r/default.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/r/default.asp&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;R GRAPHICAL TOOLS&lt;/strong&gt;&lt;br&gt;
Now that we have an idea of R's basic syntax, let's learn how to use R's different graphical tools to help you visualize and present your data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Plots&lt;/strong&gt;&lt;br&gt;
     The &lt;strong&gt;plot()&lt;/strong&gt; function in R is a tool for creating visualizations of data. It automatically generates different types of plots depending on the input data type, making it a quick and easy way to explore relationships, trends, and distributions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6xrtfnl5y1rvvkc989pp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6xrtfnl5y1rvvkc989pp.png" alt="Image description" width="193" height="68"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpcptkt0zz722vqmp4p1f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpcptkt0zz722vqmp4p1f.png" alt="Plots" width="401" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Lines&lt;/strong&gt;&lt;br&gt;
To create a line, we can modify our plot() function with &lt;strong&gt;type=l&lt;/strong&gt; which adds connected line segments to an existing plot in R. Doing so does not create a new graph but modifies an active one.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpsx2v2niyjtjcecyguga.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpsx2v2niyjtjcecyguga.png" alt="Line" width="275" height="81"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fml42ng6ce64hls62r3mn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fml42ng6ce64hls62r3mn.png" alt="Image description" width="408" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Pie Chart&lt;/strong&gt;&lt;br&gt;
The &lt;strong&gt;pie()&lt;/strong&gt; function creates a pie chart, which divides a circle into slices to represent proportions of a whole. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6dxsz5jwre38xv5rfws3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6dxsz5jwre38xv5rfws3.png" alt="Pie Chart" width="618" height="112"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5vbqfl81c7ossfe6fwsi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5vbqfl81c7ossfe6fwsi.png" alt="Image description" width="330" height="344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Bar Graph&lt;/strong&gt;&lt;br&gt;
The &lt;strong&gt;barplot()&lt;/strong&gt; function creates rectangular bars to represent categorical data, where heights/lengths correspond to values. It's more precise than pie charts for comparing quantities.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1utll6ehpo4khwow8c6m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1utll6ehpo4khwow8c6m.png" alt="Image description" width="509" height="128"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiswdxgqrmkbt8yrmd8uy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiswdxgqrmkbt8yrmd8uy.png" alt="Bar Graph" width="392" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;R STATISTICAL ANALYSIS TOOLS&lt;/strong&gt;&lt;br&gt;
     For this portion of the article, we will be using a built-in dataset within R which is &lt;strong&gt;“airquality”&lt;/strong&gt;, a data set which contains records of New York’s air quality levels. If you want to test these statistical analysis tools/functions for yourself, here are other available built-in datasets within R:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;mtcars&lt;/strong&gt;: a data set which contains fuel efficiency and several performance metrics for 32 automobiles.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;iris&lt;/strong&gt;: a data set which contains measurements of the length and width for 50 flowers each from three Iris species.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ToothGrowth&lt;/strong&gt;: a dataset which contains experimental data measuring the effect of vitamin C supplementation delivered either via orange juice or ascorbic acid on tooth growth in 60 Guinea pigs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;USArrests&lt;/strong&gt;: a data set contains statistics about violent crime rates by the US state.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;1. Minimum and Maximum Values&lt;/strong&gt;&lt;br&gt;
To get the minimum and maximum values of a data set, we can use the built-in math functions &lt;strong&gt;min()&lt;/strong&gt; and &lt;strong&gt;max()&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffxbui035av6fvbrttonw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffxbui035av6fvbrttonw.png" alt="Minimum and Maximum Value" width="755" height="156"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Mean&lt;/strong&gt;&lt;br&gt;
The mean is the sum of all values divided by the number of observations, representing the central tendency of a dataset. Doing this manually would be very time consuming, so instead, we can quickly get the mean value by using the built-in function &lt;strong&gt;mean()&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpgkz3inpg7dxdtzwrx1e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpgkz3inpg7dxdtzwrx1e.png" alt="Mean Value" width="665" height="87"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Median&lt;/strong&gt;&lt;br&gt;
The median is the middle value of a dataset when sorted, representing the 50th percentile. In R, you can quickly find the median value by using the built-in function &lt;strong&gt;median()&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv6jmnr6k9gh8g3a843it.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv6jmnr6k9gh8g3a843it.png" alt="Median Value" width="566" height="105"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Percentiles&lt;/strong&gt;&lt;br&gt;
Percentiles divide a dataset into 100 equal parts, helping you understand the distribution of values (e.g., "What value is higher than 25% of the data?"). In R, you calculate them using the built-in function &lt;strong&gt;quantile()&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;On default, the quantile() function will return the percentiles of 0, 25, 50, 75, and 100:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu9qrk6d9uio3uwotmg1z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu9qrk6d9uio3uwotmg1z.png" alt="Percentile Values" width="719" height="105"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can utilize the c() function along with the quantile() function to find the desired percentile value:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fypsxrto0i6qpk85x33w5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fypsxrto0i6qpk85x33w5.png" alt="Specific Percentile Value" width="616" height="98"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Summary&lt;/strong&gt;&lt;br&gt;
Lastly, we can use the &lt;strong&gt;summary()&lt;/strong&gt; function to display the minimum value, 1st quartile, median, mean, 3rd quartile, and maximum value all at once, respectively.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn5zvmiiwyjpezlbrb1qx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn5zvmiiwyjpezlbrb1qx.png" alt="Summary" width="726" height="113"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CONCLUSION&lt;/strong&gt;&lt;br&gt;
     R is a powerful language on its own and when paired with RStudio, they provide a comprehensive and user-friendly environment for performing statistical analysis. When combined, they make data manipulation, visualization and modeling much easier which makes them a great place for beginners to start. In this article we were able to explore what makes R and RStudio essential tools for statistical analysis. R and RStudio offer the versatility and power to make your ideas come to life, whether you're examining data, evaluating patterns, or visualizing relationships. Now that you know the basics, it's time to move on to the next phase. So go ahead and install R and RStudio, and let this guide be your first step into the world of data analysis. Use it as your guide as you begin exploring, experimenting, and unlocking the full potential of R.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;&lt;strong&gt;REFERENCES&lt;/strong&gt;&lt;/u&gt;&lt;/p&gt;

&lt;p&gt;R: What is R? (n.d.). &lt;a href="https://www.r-project.org/about.html" rel="noopener noreferrer"&gt;https://www.r-project.org/about.html&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Worsley, S. (2023, October 17). What is R?  - An Introduction to The Statistical Computing Powerhouse. &lt;a href="https://www.datacamp.com/blog/all-about-r" rel="noopener noreferrer"&gt;https://www.datacamp.com/blog/all-about-r&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;W3Schools.com. (n.d.). &lt;a href="https://www.w3schools.com/r/default.asp" rel="noopener noreferrer"&gt;https://www.w3schools.com/r/default.asp&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;R Built-in data sets - Easy Guides - Wiki - STHDA. (n.d.). &lt;a href="https://www.sthda.com/english/wiki/r-built-in-data-sets" rel="noopener noreferrer"&gt;https://www.sthda.com/english/wiki/r-built-in-data-sets&lt;/a&gt; &lt;/p&gt;

</description>
      <category>programming</category>
      <category>learning</category>
      <category>datascience</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
