{"action":"opened","issue":{"url":"https://api.github.com/repos/jefroykin/Course-Project-1/issues/1","labels_url":"https://api.github.com/repos/jefroykin/Course-Project-1/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jefroykin/Course-Project-1/issues/1/comments","events_url":"https://api.github.com/repos/jefroykin/Course-Project-1/issues/1/events","html_url":"https://github.com/jefroykin/Course-Project-1/issues/1","id":128449478,"number":1,"title":"Plot1.R","user":{"login":"jefroykin","id":12379901,"avatar_url":"https://avatars.githubusercontent.com/u/12379901?v=3","gravatar_id":"","url":"https://api.github.com/users/jefroykin","html_url":"https://github.com/jefroykin","followers_url":"https://api.github.com/users/jefroykin/followers","following_url":"https://api.github.com/users/jefroykin/following{/other_user}","gists_url":"https://api.github.com/users/jefroykin/gists{/gist_id}","starred_url":"https://api.github.com/users/jefroykin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jefroykin/subscriptions","organizations_url":"https://api.github.com/users/jefroykin/orgs","repos_url":"https://api.github.com/users/jefroykin/repos","events_url":"https://api.github.com/users/jefroykin/events{/privacy}","received_events_url":"https://api.github.com/users/jefroykin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-25T02:58:43Z","updated_at":"2016-01-25T02:58:43Z","closed_at":null,"body":"dataFile <- \"./data/household_power_consumption.txt\"\r\ndata <- read.table(dataFile, header=TRUE, sep=\";\", stringsAsFactors=FALSE, dec=\".\")\r\nsubSetData <- data[data$Date %in% c(\"1/2/2007\",\"2/2/2007\") ,]\r\n\r\nglobalActivePower <- as.numeric(subSetData$Global_active_power)\r\npng(\"plot1.png\", width=480, height=480)\r\nhist(globalActivePower, col=\"red\", main=\"Global Active Power\", xlab=\"Global Active Power (kilowatts)\")\r\ndev.off()"}}