{"action":"created","issue":{"url":"https://api.github.com/repos/darjapet/APPR-2017/issues/4","repository_url":"https://api.github.com/repos/darjapet/APPR-2017","labels_url":"https://api.github.com/repos/darjapet/APPR-2017/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/darjapet/APPR-2017/issues/4/comments","events_url":"https://api.github.com/repos/darjapet/APPR-2017/issues/4/events","html_url":"https://github.com/darjapet/APPR-2017/issues/4","id":232239391,"number":4,"title":"Zemljevid in predstavitev","user":{"login":"jaanos","id":6708236,"avatar_url":"https://avatars0.githubusercontent.com/u/6708236?v=3","gravatar_id":"","url":"https://api.github.com/users/jaanos","html_url":"https://github.com/jaanos","followers_url":"https://api.github.com/users/jaanos/followers","following_url":"https://api.github.com/users/jaanos/following{/other_user}","gists_url":"https://api.github.com/users/jaanos/gists{/gist_id}","starred_url":"https://api.github.com/users/jaanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaanos/subscriptions","organizations_url":"https://api.github.com/users/jaanos/orgs","repos_url":"https://api.github.com/users/jaanos/repos","events_url":"https://api.github.com/users/jaanos/events{/privacy}","received_events_url":"https://api.github.com/users/jaanos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-05-30T12:40:36Z","updated_at":"2017-06-06T22:45:45Z","closed_at":null,"body":"Da boš pripravljena na predstavitev naslednji teden, prosim dodaj v poročilo grafe in zemljevide, ki jih boš takrat prikazala. Teh ne izrisuj v `vizualizacija.r` (tam jih lahko pripraviš), pač pa vsakega izriši v bloku kode na želenem mestu v poročilu. S številom grafov in zemljevidov seveda ni potrebno pretiravati - za vsakega pa napiši, kaj prikazuje in kaj si se iz njega naučila. Iz poročila in `vizualizacija.r` tudi pobriši del, ki je ostal iz vzorca, da bo program tekel brez napak in se bo poročilo lahko prevedlo.\r\n\r\nPri zemljevidu poskrbi za ustrezne meje, prav tako se izogni eksponentni notaciji v legendi. Najbrž želiš prikazati podatke iz stolpca `noc` iz razpredelnice `nocitve`. Potem lahko zemljevid pripraviš npr. tako:\r\n```R\r\nz <- ggplot() + geom_polygon(data = left_join(evropa, nocitve, by = c(\"name_sort\" = \"drzava\")),\r\n                             aes(x = long, y = lat, group = group, fill = noc/1e6)) +\r\n  coord_map(xlim = c(-25, 40), ylim = c(32, 72)) +\r\n  guides(fill = guide_colorbar(title = \"Nočitve (milijoni)\"))\r\n```"},"comment":{"url":"https://api.github.com/repos/darjapet/APPR-2017/issues/comments/306638733","html_url":"https://github.com/darjapet/APPR-2017/issues/4#issuecomment-306638733","issue_url":"https://api.github.com/repos/darjapet/APPR-2017/issues/4","id":306638733,"user":{"login":"jaanos","id":6708236,"avatar_url":"https://avatars0.githubusercontent.com/u/6708236?v=3","gravatar_id":"","url":"https://api.github.com/users/jaanos","html_url":"https://github.com/jaanos","followers_url":"https://api.github.com/users/jaanos/followers","following_url":"https://api.github.com/users/jaanos/following{/other_user}","gists_url":"https://api.github.com/users/jaanos/gists{/gist_id}","starred_url":"https://api.github.com/users/jaanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaanos/subscriptions","organizations_url":"https://api.github.com/users/jaanos/orgs","repos_url":"https://api.github.com/users/jaanos/repos","events_url":"https://api.github.com/users/jaanos/events{/privacy}","received_events_url":"https://api.github.com/users/jaanos/received_events","type":"User","site_admin":false},"created_at":"2017-06-06T22:45:45Z","updated_at":"2017-06-06T22:45:45Z","body":"V glave blokov kode, kjer se ti pojavljajo ta opozorila, dodaj parameter `warning = FALSE`, pa se opozorila ne bodo izpisovala v poročilo.\r\n\r\nDrugega opozorila se lahko sicer znebiš tudi tako, da pred združevanjem z zemljevidom stolpec `drzava` v razpredelnici `nocitve` pretvoriš v faktor z istimi vrednostmi kot stolpec `name_sort` v zemljevidu. Tako lahko zemljevid narediš tako:\r\n```R\r\nzemljevid <- ggplot() +\r\n  geom_polygon(data = evropa %>%\r\n                 left_join(nocitve %>%\r\n                             mutate(drzava = parse_factor(drzava, levels(evropa$name_sort))),\r\n                           by = c(\"name_sort\" = \"drzava\")),\r\n               aes(x = long, y = lat, group = group, fill = noc/1e6)) +\r\n  coord_map(xlim = c(-25, 40), ylim = c(32, 72)) +\r\n  guides(fill = guide_colorbar(title = \"Nočitve (milijoni)\"))\r\n```\r\nTrenutno dobiš sicer še opozorilo, ker se imeni za Makedonijo ne ujemata - lahko ga popraviš v zemljevidu na isti način, kot si za Slovaško."}}
{"actor":{"display_login":"jaanos"}}