Integration with geom_phylopic()
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- plotly, r
- Domain
- data-visualization
Research direction
Start by running the supplied R reprex with geom_phylopic() and ggplotly() to reproduce the unsupported-geom error. Read the existing ggplotly() handling for unsupported geoms and determine how this integration is tested. Done means the example renders through ggplotly() without the implementation error while retaining the plotted phylopic image and tooltip behavior.
Written by the indexing model from the issue text.
Description
Hello,
When developing a shiny app for a data visualisation dashboard, I encountered an issue that geom_phylopic() isn't integrated with plotly yet. I have pasted the error below. Is there any plans to have this integrated? I (think I) have created a reprex showing two plots that work and the one with plotly with the error.
Thanks,
Jo
geom_GeomPhylopic() has yet to be implemented in plotly.
If you'd like to see this geom implemented,
Please open an issue with your example code at
https://github.com/ropensci/plotly/issues
library(rphylopic)
library(ggplot2)
library(plotly)
# get image from phylopic and set up df
silhouette.img <- get_phylopic(uuid = get_uuid(name = "Sphyrnidae", n=1)) # hammerhead
silhouette.df <- data.frame(x=1, y=9)
# make some fake data
df = data.frame(x=c(1:10),
y=c(1:10))
# this plot works
p = ggplot() +
geom_point(data = df, aes(x=x, y=y)) +
theme_bw() +
# geom_phylopic(data = silhouette.df, aes(x = x, y = y),
# size = 1, col='purple',
# img = silhouette.img) +
xlim(0,10)
p %>% ggplotly(tooltip = c("x"))
# this plot works
p = ggplot() +
geom_point(data = df, aes(x=x, y=y)) +
theme_bw() +
geom_phylopic(data = silhouette.df, aes(x = x, y = y),
size = 1, col='purple',
img = silhouette.img) +
xlim(0,10)
p
# this plot does not work
p = ggplot() +
geom_point(data = df, aes(x=x, y=y)) +
theme_bw() +
geom_phylopic(data = silhouette.df, aes(x = x, y = y),
size = 1, col='purple',
img = silhouette.img) +
xlim(0,10)
p %>% ggplotly(tooltip = c("x"))
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from plotly/plotly.R
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
save_image ErrorOpen
Difficulty 3/5 1-2 days Newbie friendliness 52/100
Similar issues
-
benchmark bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 Half a day Newbie friendliness 78/100
ThinkR-open/datadiff#59 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
epiforecasts/EpiNow2#1594 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
duckdb/duckdb-r#2773 · 1 comment ·
Maintainers usually reply within 1 day