Lecture 2.2 - Basic Graphics with ggplot2

Table and readcsv load from an external csv le on

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: iscussion (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 Discussion (15 minutes) Q and A (10 minutes) Writing Loading Data Load data from a Website Load comma seperated value data mydata.csv = read.csv("http://www.at...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online