Lecture 2.2 - Basic Graphics with ggplot2

Dai trang le lecture 22 basic graphics with ggplot2

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: write down at least two questions to ask. Dai-Trang Le Lecture 2.2 - Basic Graphics with ggplot2 Graphics with ggplot2 (25 minutes) Group Discussion (15 minutes) Q and A (10 minutes) Writing Loading Data Q and A Dai-Trang Le Lecture 2.2 - Basic Graphics with ggplot2 Graphics with ggplot2 (25 minutes) Group Discussion (15 minutes) Q and A (10 minutes) Writing Loading Data For Exel files: read.table() and read.csv() Load from an external .csv file On Windows (using backward slash \) mydata = read.csv("c:\\documents and settings\\desktop\\mydata.csv") On anything else (using forward slash /) mydata = read.csv("~/desktop/mydata.csv") Prompt for a file name get.my.data = read.csv(file.choose()) space versus tab delimited values Load a file delimited by spaces diamonds = read.table(file.choose()) Load a tab delimited file: diamonds = read.table(file.choose(), sep="\t") Dai-Trang Le Lecture 2.2 - Basic Graphics with ggplot2 Graphics with ggplot2 (25 minutes) Group D...
View Full Document

This document was uploaded on 12/05/2013.

Ask a homework question - tutors are online