Ian Huang
shuang4csa@hotmail.com
This assignment uses data from the UC Irvine Machine Learning Repository, a popular repository for machine learning datasets. In particular, we will be using the "Individual household electric power consumption Data Set" which can be found on the course web site:
- Dataset: Electric power consumption [20Mb]
####The final project includes the following files
- 'README.md': The document you are currently reading
- 'plot1.png','plot2.png','plot3.png','plot4.png': Plots graphics saved in .png format
- 'plot1.R','plot2.R','plot3.R','plot4.R': Scripts to make plots via base plotting functions
- 'WhiteBG_FIG' folder: Contains plotted figures saved with white background
- 'TranspBG_FIG' folder: Contains plotted figures saved with transparent background
####How to run these R Scripts
- Download 'plot1.R','plot2.R','plot3.R' and 'plot4.R', save them to anywhere on your local machine.
- (Optional) Make sure the original data source file ('household_power_consumption.txt') is in your working directory.
- Open RStudio.
- Install and load 'data.table' package to R if necessary.
- Source these R Scripts one by one.
- These R Scripts will first check whether you have the original data source file ('household_power_consumption.txt') in your working directory.
- If it does not exist, it will start downloading 'household_power_consumption.zip' file automatically from the designated URL and unzip to your working directory; otherwise it would use your previously downloaded data source file for later data plotting.
- The plotted .png files will be generated and saved in your working directory.
For more detailed procedures, please view the documentation in these R Scripts.
####Notes
- Development environment for 'run_analysis.R'
- Windows 7, 64-bit OS
- R version 3.1.2
- RStudio Version 0.98.1049 - Depending on your local machine and internet connection speed, the downloading time for 'household_power_consumption.zip' may vary.
- The PNG graphics device supports transparent backgrounds when use "bg='transparent'". But not all PNG viewers render files with transparency correctly (All the files under 'TranspBG_FIG' folder has been tested OK only on Internet Explorer 11).
For more information about this dataset contact: shuang4csa@hotmail.com