plotting1.R

## First check whether it has the file in the current dir.
if (!"load_data.R" %in% list.files()) {
    setwd("~/Desktop/Online
Coursera/Coursera-Exploratory-Data-Analysis/ExData_Plotting1/")
}
source("load_data.R")
png(filename = "plot1.png",
    width = 480, height = 480,
    units = "px", bg = "transparent")
hist(Global_active_power,
     col = "red",
     main = "Global Active Power",
     xlab = "Global Active Power (kilowatts)",
     breaks = 12, ylim = c(0, 1200))
dev.off()