{"action":"closed","issue":{"url":"https://api.github.com/repos/STAT545-UBC/Discussion/issues/133","labels_url":"https://api.github.com/repos/STAT545-UBC/Discussion/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/STAT545-UBC/Discussion/issues/133/comments","events_url":"https://api.github.com/repos/STAT545-UBC/Discussion/issues/133/events","html_url":"https://github.com/STAT545-UBC/Discussion/issues/133","id":109593000,"number":133,"title":"how do I plot the min and the max of in the same y- axis?","user":{"login":"bdacunha","id":14184696,"avatar_url":"https://avatars.githubusercontent.com/u/14184696?v=3","gravatar_id":"","url":"https://api.github.com/users/bdacunha","html_url":"https://github.com/bdacunha","followers_url":"https://api.github.com/users/bdacunha/followers","following_url":"https://api.github.com/users/bdacunha/following{/other_user}","gists_url":"https://api.github.com/users/bdacunha/gists{/gist_id}","starred_url":"https://api.github.com/users/bdacunha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdacunha/subscriptions","organizations_url":"https://api.github.com/users/bdacunha/orgs","repos_url":"https://api.github.com/users/bdacunha/repos","events_url":"https://api.github.com/users/bdacunha/events{/privacy}","received_events_url":"https://api.github.com/users/bdacunha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-10-03T00:23:27Z","updated_at":"2015-11-02T21:04:52Z","closed_at":"2015-11-02T21:04:52Z","body":"Hello,\r\n\r\nI've been working on the min and the max of the gdp, but I cannot seem to find the correct code to plot the min and the max in the same plot.\r\nHere's the table I got:\r\n\r\nm <- gtbl %>% group_by(continent) %>% \r\nsummarize(min_gdp = min(gdpPercap), max_gdp = max(gdpPercap)) %>%\r\narrange(min_gdp, max_gdp)\r\nm\r\n\r\nbut when I try to add\r\n\r\nm + ggplot... \r\n\r\nI cannot plot it...\r\n\r\nI found a page where they do it this way:\r\nm + ggplot(m) + geom_point(aes(x = factor(continent), y = min_gdp), color = 'blue') + geom_point(aes(x = factor(continent), y = max_gdp), color = 'red')\r\n\r\nbut it wont work in this case..\r\n\r\nWhat else can I try?\r\n\r\nThanks!\r\nBrenda"}}