-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make add_phylopic work with facets #25
Comments
great idea @Bisaloo - i've no idea how to do that. sounds like you might have some ideas though? |
Not really but I'm interested enough in this feature to try and have a look at some point. I don't know anything about ggplot internals though so not sure I'll manage to get somewhere. |
Do you know of any examples out there of adding different backgrounds/images to facets already? Then we can build on that |
Hmm, maybe. I would need to have a look in my archives. I won't have time to work on this in the next ~10 days but I'll look into it after that. |
ok, thanks |
Just remembered about this example library(ggplot2)
library(ggimage)
test <- data.frame("x" = rnorm(4),
"y" = rnorm(4),
"species" = rep(c(1, 2), 2),
"phylopic" = rep(c("c4ac9ea6-b465-4ed0-a5de-9fe4eebd3ef9",
"5388a472-994a-48e1-86de-d988c6019e72"), 2))
ggplot(test, aes(x, y)) +
geom_point() +
facet_wrap(~ species) +
geom_phylopic(aes(image = phylopic)) It's slightly different than what I described in this issue since the phylopic images are used in place of the data points and not as background but it should provide a good basis to think about this issue. |
ah nice, had forgotten about that as well. yes, should provide some guidance on how to proceed for sure |
@Bisaloo still thinking about this? or should we close? no rush at all, just curious |
@sckott, it's on the veryyyy long list of things I'd like to do one day but my schedule is completely full at the moment and for the foreseeable future so do as you see fit with this issue. Thanks! |
okay, will leave it open |
hi guy, I'm interested in this topic too. Any news? |
@sghignone you're welcome to contribute. i don't have time myself to work on it |
Welp, looks like I too am desiring this. I'll look if there is an easy skip around. I'm thinking maybe you can make a grid out of the desired pics, and put them as a geom_rect behind your graph? |
@arw36 I encourage you to see if you can come up with a solution - and submit a PR if you do :) |
Hi,
thanks for the great package, I would be interested in making
add_phylopic
work with ggplot2 facets. The goal would be to be able to put different images in each facets in the following example:Created on 2019-10-28 by the reprex package (v0.3.0)
Session info
The text was updated successfully, but these errors were encountered: