Skip to content

mheydt/ExData_Plotting1

 
 

Repository files navigation

Exploratory Data Analysis Programming Assignment 1

First, I have not included the data file in the repository. If you actually run this, you will need the the household_power_consumption.txt. That is available at https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip

Description of .R files

  • shared.R: Contains the bulk of the code for manipulating data and generating the specific graphs.
  • plot1.R: Reads shared.R and generates plot1.png
  • plot2.R: Reads shared.R and generates plot2.png
  • plot3.R: Reads shared.R and generates plot3.png
  • plot4.R: Reads shared.R and generates plot4.png
  • plot_1234.R: Reads shared.R and generates plot1.png, plot2.png, plot3.png and plot4.png. This is the most efficient means of generating all plots and data is read and tidied up only once for all plots.

Plot files (.PNG's). The .PNG's in the directory are visible in this help page after the intrusctions on running the scripts.

  • plot1.png: output of plot1.R
  • plot2.png: output of plot2.R
  • plot3.png: output of plot3.R
  • plot4.png: output of plot4.R

Running the scripts

In R, load the .R file associated with the plot you want to generate. As an example, from the R cosole to generate plot1.png, execute the following command: source("plot1.R")

For your convenience: the plots

Plot 1

plot 1

Plot 2

plot 2

Plot 3

plot 3

Plot 4

plot 4

About

Plotting Assignment 1 for Exploratory Data Analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%