This post focuses on how to deal with matrix subset plots with matplot in R. I’ll start by setting up the demo data and then walk through a series of steps explaining how to work with with matrix subsets. I’ll… Read More ›

# R Programming

## Plotting Matrices in R with Matplot

Plotting Matrices in R with Matplot is straightforward. In this post, I explore some basics of Matplot using a simple example data set of wind speeds. Creating the Dataset For my example, I made a simple data set of average… Read More ›

## Matrix Fundamentals in R Programming

This post covers matrix fundamentals in R programming. Working with matrices in R is a huge topic with complete documentation found at https://cran.r-project.org/doc/manuals/r-release/R-intro.html#Arrays-and-matrices. My post will cover just the basics: Creating matrices Indexing and accessing matrices Options for working with… Read More ›

## Variations on R Functions

Like many programming languages, there are variations on R functions. There’s the default signature, order, and behavior for parameters. Also, there are ways to change the default behavior prescribed by the signature. You can view these variations by looking at… Read More ›

## R Vector Operations

This post reviews basic R vector operations such as addition and multiplication. I expected that there might be “shape” constraints such as what is seen with NumPy broadcasting, but that is not the case. As I mentioned in the first… Read More ›

## Vectors in R Programming

Though I’m new to the language, it is obvious that understanding vectors in R programming is an essential part of learning the language. This post is going to touch on some of the basics of vector implementation in R and… Read More ›

## R Programming While and For Loops

R Programming while loops take on the same syntax as seen in JavaScript, C, C#, and many other languages. However, with for loops the iterator style reflects something like a combination of Python iterator syntax mixed with aforementioned languages’ parenthesis… Read More ›

## Variables and Operators in R Programming

Variables and operators in R programming are very similar to many other languages I know, so I’m not going to add notes about arithmetic operators +, -, *, / or most logical operators <, >, <=, >=, etc. Not (!)… Read More ›

## Basic Atomic Variables in R Programming

There are five basic atomic variables in R Programming. Being new to the language, the first thing that through me for a loop was that the assignment operator is “<-“. I’ve professionally programmed in C, C++, Perl, PHP, JavaScript, C#,… Read More ›

## R Scatter Plot with GGPlot2

Recall the opening post in this series. This series of blog posts on R Programming will be purely for reference and are intended to serve as a set of notes that one can step through to view a progressive path… Read More ›