{"action":"created","issue":{"url":"https://api.github.com/repos/tidyverse/ggplot2/issues/2922","repository_url":"https://api.github.com/repos/tidyverse/ggplot2","labels_url":"https://api.github.com/repos/tidyverse/ggplot2/issues/2922/labels{/name}","comments_url":"https://api.github.com/repos/tidyverse/ggplot2/issues/2922/comments","events_url":"https://api.github.com/repos/tidyverse/ggplot2/issues/2922/events","html_url":"https://github.com/tidyverse/ggplot2/issues/2922","id":365435258,"node_id":"MDU6SXNzdWUzNjU0MzUyNTg=","number":2922,"title":"Closed arrow on `axis.line` is not filled","user":{"login":"martisak","id":7222170,"node_id":"MDQ6VXNlcjcyMjIxNzA=","avatar_url":"https://avatars2.githubusercontent.com/u/7222170?v=4","gravatar_id":"","url":"https://api.github.com/users/martisak","html_url":"https://github.com/martisak","followers_url":"https://api.github.com/users/martisak/followers","following_url":"https://api.github.com/users/martisak/following{/other_user}","gists_url":"https://api.github.com/users/martisak/gists{/gist_id}","starred_url":"https://api.github.com/users/martisak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martisak/subscriptions","organizations_url":"https://api.github.com/users/martisak/orgs","repos_url":"https://api.github.com/users/martisak/repos","events_url":"https://api.github.com/users/martisak/events{/privacy}","received_events_url":"https://api.github.com/users/martisak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-01T12:20:23Z","updated_at":"2018-10-01T13:02:21Z","closed_at":null,"author_association":"NONE","body":"The arrow on `axis.line` is not filled when the type is set to \"closed\", however other arrows of the same type are filled. See example.\r\n\r\n``` r\r\nlibrary(tidyverse)\r\n\r\narrow = arrow(angle=10, type = \"closed\")\r\nggplot(iris, aes(x=Sepal.Length, y=Sepal.Width, color=Species)) +\r\n    geom_point() +\r\n    theme(axis.line = element_line(arrow=arrow)) +\r\n    annotate(\"segment\", x = 3, xend = min(iris$Sepal.Length), y = 4, yend = 3, arrow=arrow)\r\n```\r\n\r\n![](https://i.imgur.com/XmO537O.png)\r\n\r\n<sup>Created on 2018-10-01 by the [reprex package](https://reprex.tidyverse.org) (v0.2.1)</sup>\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tidyverse/ggplot2/issues/comments/425899295","html_url":"https://github.com/tidyverse/ggplot2/issues/2922#issuecomment-425899295","issue_url":"https://api.github.com/repos/tidyverse/ggplot2/issues/2922","id":425899295,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTg5OTI5NQ==","user":{"login":"batpigandme","id":831732,"node_id":"MDQ6VXNlcjgzMTczMg==","avatar_url":"https://avatars0.githubusercontent.com/u/831732?v=4","gravatar_id":"","url":"https://api.github.com/users/batpigandme","html_url":"https://github.com/batpigandme","followers_url":"https://api.github.com/users/batpigandme/followers","following_url":"https://api.github.com/users/batpigandme/following{/other_user}","gists_url":"https://api.github.com/users/batpigandme/gists{/gist_id}","starred_url":"https://api.github.com/users/batpigandme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batpigandme/subscriptions","organizations_url":"https://api.github.com/users/batpigandme/orgs","repos_url":"https://api.github.com/users/batpigandme/repos","events_url":"https://api.github.com/users/batpigandme/events{/privacy}","received_events_url":"https://api.github.com/users/batpigandme/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T13:02:21Z","updated_at":"2018-10-01T13:02:21Z","author_association":"MEMBER","body":"Right, so the only adjustment to arrow specified is that it's closed:\r\n``` r\r\nlibrary(tidyverse)\r\n\r\narrow = arrow(angle=10, type = \"closed\")\r\nggplot(iris, aes(x=Sepal.Length, y=Sepal.Width, color=Species)) +\r\n  geom_point() +\r\n  theme(axis.line = element_line(arrow=arrow)) +\r\n  annotate(\"segment\", x = 3, xend = min(iris$Sepal.Length), y = 4, yend = 3, arrow=arrow)\r\n```\r\n\r\n![](https://i.imgur.com/jMA8Mwp.png)\r\n\r\n``` r\r\n\r\narrow = arrow(angle=10)\r\nggplot(iris, aes(x=Sepal.Length, y=Sepal.Width, color=Species)) +\r\n  geom_point() +\r\n  theme(axis.line = element_line(arrow=arrow)) +\r\n  annotate(\"segment\", x = 3, xend = min(iris$Sepal.Length), y = 4, yend = 3, arrow=arrow)\r\n```\r\n\r\n![](https://i.imgur.com/d6Xukwd.png)\r\n\r\n<sup>Created on 2018-10-01 by the [reprex package](https://reprex.tidyverse.org) (v0.2.1.9000)</sup>\r\n\r\nThe `arrow.fill` argument only works currently for `geom_segment()` and `geom_curve()` [NEWS here](https://github.com/tidyverse/ggplot2/blob/4af1337383de41d8f9cf13715d68e7f3a2f40fe4/NEWS.md#layers-geoms-stats-and-position-adjustments):\r\n> `geom_segment()` and `geom_curve()` have a new arrow.fill parameter which allows you to specify a separate fill colour for closed arrowheads (@hrbrmstr and @clauswilke, #2375).\r\n\r\n"}}
{"actor":{"display_login":"batpigandme"}}