{"action":"opened","issue":{"url":"https://api.github.com/repos/tengfei/ggbio/issues/59","labels_url":"https://api.github.com/repos/tengfei/ggbio/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/tengfei/ggbio/issues/59/comments","events_url":"https://api.github.com/repos/tengfei/ggbio/issues/59/events","html_url":"https://github.com/tengfei/ggbio/issues/59","id":63936462,"number":59,"title":"coloring rectnagles","user":{"login":"agolicz","id":10213846,"avatar_url":"https://avatars.githubusercontent.com/u/10213846?v=3","gravatar_id":"","url":"https://api.github.com/users/agolicz","html_url":"https://github.com/agolicz","followers_url":"https://api.github.com/users/agolicz/followers","following_url":"https://api.github.com/users/agolicz/following{/other_user}","gists_url":"https://api.github.com/users/agolicz/gists{/gist_id}","starred_url":"https://api.github.com/users/agolicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agolicz/subscriptions","organizations_url":"https://api.github.com/users/agolicz/orgs","repos_url":"https://api.github.com/users/agolicz/repos","events_url":"https://api.github.com/users/agolicz/events{/privacy}","received_events_url":"https://api.github.com/users/agolicz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-24T08:35:19Z","updated_at":"2015-03-24T08:35:19Z","closed_at":null,"body":"Hi,\r\nI am trying to plot mutations from multiple individuals on the same track of circular plot.\r\nI have GRanges object that looks like this:\r\nGRanges object with 26 ranges and 4 metadata columns:\r\n       seqnames         ranges strand   |               id         var       val       buu\r\n          <Rle>      <IRanges>  <Rle>   |      <character> <character> <numeric> <integer>\r\n   [1]        1 [32417, 32427]      *   | jcf7180000862659         A         1     32417\r\n   [2]        1 [58621, 58631]      *   | jcf7180000753913         B         1     58621\r\n   [3]        2 [25622, 25632]      *   | jcf7180000860774         C         1     25622\r\n   [4]        2 [44180, 44190]      *   | jcf7180001643718         D         1     44180\r\n   [5]        2 [66003, 66013]      *   | jcf7180001638671         E         1     66003\r\n \r\nI would like to color mutations by var. I am able to plot them as points but not as rect.\r\ncols <- RColorBrewer::brewer.pal(6,\"Paired\")\r\n              names(cols) <- c(\"A,\"B\",\"C\",\"D\", \"E\", \"F\")\r\n\t        p <- p + circle(lost, geom = \"point\", aes(fill=var, colour=var, shape=0)) + scale_color_manual(values = cols) + scale_fill_manual(values = cols) + scale_shape_identity()\r\n\r\nThat works for goem point, but I would  like geom rect. If I change geom to rect, all lines are black and do aes(fill=var, colour=var​)\r\n"}}