Skip to content

Latest commit

 

History

History
32 lines (15 loc) · 1001 Bytes

README.md

File metadata and controls

32 lines (15 loc) · 1001 Bytes

Exploratory Data Analysis Course Project 1

This repository contains the required plots 1-4 and the scripts plot[1-4].R that create the plots. To run the scripts, please make sure that the original dataset is unzipped and that the current working directory contains a file called "household_power_consumption.txt".

What the scripts do

Each script loads the data from "household_power_consumption.txt", subsets them to extract the data for the dates 2007-02-01 and 2007-02-02. Then the date and time variables are converted into POSIX dates. Additional conversion is done to ensure that the other variables are numeric. After that, a png is opened as a graphic device and the data is plotted. Each script also stores the current locale and restores it after the plot is done.

Plot 1

plot produced by plot1.R

Plot 2

plot produced by plot2.R

Plot 3

plot produced by plot3.R

Plot 4

plot produced by plot4.R