{"action":"created","issue":{"url":"https://api.github.com/repos/rdpeng/ExData_Plotting1/issues/342","labels_url":"https://api.github.com/repos/rdpeng/ExData_Plotting1/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/rdpeng/ExData_Plotting1/issues/342/comments","events_url":"https://api.github.com/repos/rdpeng/ExData_Plotting1/issues/342/events","html_url":"https://github.com/rdpeng/ExData_Plotting1/pull/342","id":85721678,"number":342,"title":"upload files","user":{"login":"niambhs","id":4164078,"avatar_url":"https://avatars.githubusercontent.com/u/4164078?v=3","gravatar_id":"","url":"https://api.github.com/users/niambhs","html_url":"https://github.com/niambhs","followers_url":"https://api.github.com/users/niambhs/followers","following_url":"https://api.github.com/users/niambhs/following{/other_user}","gists_url":"https://api.github.com/users/niambhs/gists{/gist_id}","starred_url":"https://api.github.com/users/niambhs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niambhs/subscriptions","organizations_url":"https://api.github.com/users/niambhs/orgs","repos_url":"https://api.github.com/users/niambhs/repos","events_url":"https://api.github.com/users/niambhs/events{/privacy}","received_events_url":"https://api.github.com/users/niambhs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-06T08:11:40Z","updated_at":"2015-06-06T19:26:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rdpeng/ExData_Plotting1/pulls/342","html_url":"https://github.com/rdpeng/ExData_Plotting1/pull/342","diff_url":"https://github.com/rdpeng/ExData_Plotting1/pull/342.diff","patch_url":"https://github.com/rdpeng/ExData_Plotting1/pull/342.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/rdpeng/ExData_Plotting1/issues/comments/109639429","html_url":"https://github.com/rdpeng/ExData_Plotting1/pull/342#issuecomment-109639429","issue_url":"https://api.github.com/repos/rdpeng/ExData_Plotting1/issues/342","id":109639429,"user":{"login":"vchan13620angkorwat","id":9456844,"avatar_url":"https://avatars.githubusercontent.com/u/9456844?v=3","gravatar_id":"","url":"https://api.github.com/users/vchan13620angkorwat","html_url":"https://github.com/vchan13620angkorwat","followers_url":"https://api.github.com/users/vchan13620angkorwat/followers","following_url":"https://api.github.com/users/vchan13620angkorwat/following{/other_user}","gists_url":"https://api.github.com/users/vchan13620angkorwat/gists{/gist_id}","starred_url":"https://api.github.com/users/vchan13620angkorwat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vchan13620angkorwat/subscriptions","organizations_url":"https://api.github.com/users/vchan13620angkorwat/orgs","repos_url":"https://api.github.com/users/vchan13620angkorwat/repos","events_url":"https://api.github.com/users/vchan13620angkorwat/events{/privacy}","received_events_url":"https://api.github.com/users/vchan13620angkorwat/received_events","type":"User","site_admin":false},"created_at":"2015-06-06T19:26:23Z","updated_at":"2015-06-06T19:26:23Z","body":"#####Course Project\r\n\r\nmydata2 <- read.csv(\"C:/Users/vchan/Desktop/Exploratory Data Analysis/household_power_consumption.txt\", header = T, sep=\";\", na.strings=\"?\", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char=\"\", quote='\\\"')\r\n\r\n#combo <- paste(mydata2$Dates, mydata2$Time)\r\n#combotime <-strptime(combo, \"%m/%d/%Y %H:%M:%S\")\r\n#mydata2$Time <-strptime(combo, \"%m/%d/%Y %H:%M:%S\")\r\n\r\nmydata2$Date <- as.Date(mydata2$Date, format=\"%d/%m/%Y\")\r\ndatetime <- paste(mydata2$Date, mydata2$Time)\r\nmydata2$Time <- as.POSIXct(datetime)\r\nData <- subset(mydata2,Date >= \"2007-02-01\" & Date <= \"2007-02-02\")\r\n\r\n#################PLOT 1#####################\r\n\r\n#Creating hist plot\r\nhist(Data$Global_active_power, main=\"Global Active Power\",col=\"red\",xlab=\"Global Active Power (kilowatts)\")\r\n\r\n#Saving files in png\r\ndev.copy(png,file=\"plot1.png\",height=480,width=480)\r\ndev.off()"}}