## R Learning – Tutorial 5 – Creating Matrices

Want to be Neo and take the blue or red pill? Well this is nothing like that – these are matrices to create calculations in:

## R Learning – Tutorial 4 – Vector Indexing and Slicing

This video shows you how to slice and index vectors:

## R Learning – Tutorial 3 – Vectors

What the devil are vectors? Find out:

## R Learning – Tutorial 2 – Creating variables in R

This video will show you how to create variables in R:

## R Learning – Tutorial 1 – Using R like a calculator

The video below teaches you how to use R like a calculator – this is a basic video and gets you going regarding getting to grips with R:

## Converting ggplot2 charts to interactive plotly charts

Fun with I was recently looking for a way to style up my existing plots and allow them to be interrogated by a user with the added functionality that the package plotly is installed. This package contains a wealth of functionality for creating charts into plotly charts and their website is a great source to…

## A simple function to install and load packages in R

One function to rule the world, or install or load your packages for you I was starting to despair at the amount of packages I end up using during the task of transforming, cleaning, modelling and validating some of my models. I thought there must be a simple approach to dealing with this? So, I…

## DPLYR: A Beginners Guide

What is DPLYR? Dplyr is a grammar of data manipulation, providing a consistent set of verbs that help you solve the most common data manipulation challenges. The next series of examples will show how you can use the shortcuts in Dplyr to achieve the results of traditional R data manipulation, but faster. Setting dplyr up…

## Violin and density plots in ggplot2

Violin Plots This chart is a combination of a Box Plot and a Density Plo that is rotated and placed on each side, to show the distribution shape of the data. The thick black bar in the centre represents the interquartile range, the thin black line extended from it represents the 95% confidence intervals, and the white dot is the…

## Box Plots in ggplot2

Setting up the plot The box plot, in ggplot2, can be really powerful and useful for analysing variation. I will show a few examples of different types of box plots in ggplot2. Basic Box Plot 1 2 3 4 5 6 7 8 9 10 library(ggplot2) theme_set(theme_classic()) # Plot plot <- ggplot(mpg, aes(class, cty)) plot…