{"comment":{"url":"https://api.github.com/repos/luchobalboa/ExData_Plotting1/comments/13203269","html_url":"https://github.com/luchobalboa/ExData_Plotting1/commit/73fe5c675a2db951b302bfd68524bf7a56094d46#commitcomment-13203269","id":13203269,"user":{"login":"luchobalboa","id":10871941,"avatar_url":"https://avatars.githubusercontent.com/u/10871941?v=3","gravatar_id":"","url":"https://api.github.com/users/luchobalboa","html_url":"https://github.com/luchobalboa","followers_url":"https://api.github.com/users/luchobalboa/followers","following_url":"https://api.github.com/users/luchobalboa/following{/other_user}","gists_url":"https://api.github.com/users/luchobalboa/gists{/gist_id}","starred_url":"https://api.github.com/users/luchobalboa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luchobalboa/subscriptions","organizations_url":"https://api.github.com/users/luchobalboa/orgs","repos_url":"https://api.github.com/users/luchobalboa/repos","events_url":"https://api.github.com/users/luchobalboa/events{/privacy}","received_events_url":"https://api.github.com/users/luchobalboa/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"73fe5c675a2db951b302bfd68524bf7a56094d46","created_at":"2015-09-13T23:57:08Z","updated_at":"2015-09-13T23:57:08Z","body":"project1<-read.csv(\"household_power_consumption.txt\",sep=\";\")\r\nproject1_graph<-subset(project1, Date==\"1/2/2007\" | Date==\"2/2/2007\")\r\ndatetime<-as.POSIXct(paste(project1_graph$Date, project1_graph$Time), format=\"%d/%m/%Y %H:%M:%S\")\r\nsummary(datetime)\r\npng(\"plot1.png\", width=480, height=480)\r\nhist(as.numeric(project1_graph$Global_active_power), xlab=\"Global active power (kilowatts)\", col=\"red\", main=\"Global Active Power\", ylim=c(0,1200))\r\ndev.off()"}}