Tuesday, November 24, 2015

Introduction to R (Download PDF)


This PDF is a part of Introduction to R workshop conducted by Chris Bruno, Dason Kurkiewicz and Adam Loy from Department of Statistics, IOWA State University on 15 July 2010.


Breakdown of chapters is as following:

1. Introduction
2. Data Management
3. Graphics
4. Models
5. Programming
6. Advanced Manipulations

This post shares a downloadable PDF introduction to R from a statistics workshop, aimed at newcomers to the language. R is a free environment widely used for statistics, data analysis, and graphics.

A guided introduction like this is a good starting point before moving on to packages such as ggplot2 and dplyr for visualization and data wrangling.

Friday, November 20, 2015

Plot histogram in RStudio using Shiny

CODE:

# '#' denotes a comment
# install.packages("UsingR") uncomment if package is not installed
library(UsingR)
# install.packages("shiny") uncomment if package is not installed
library(shiny)
# install.packages("Hmisc") uncomment if package is not installed
library(Hmisc)
# install.packages("corrplot") uncomment if package is not installed
library(corrplot)

# getwd() gives the current directory where R looks up for files
wd <- getwd()
setwd(wd)