Please implement geom_GeomXsidebar() and related geoms
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- plotly, r
- Domínio
- data-visualization
Direção de pesquisa
Comece rastreando como o ggplotly lida com geom_GeomXsidebar e geom_GeomYsidebar, incluindo os pontos de entrada geom_xsidehistogram e geom_ysidehistogram. Compare a saída normal do ggplot com o gráfico convertido e verifique se os histogramas laterais são renderizados no ggplotly, preservando o texto de hover existente do geom_tile principal.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
I tried to use plotly on ggplot graph that used geom_xsidehistogram and geom_ysidehistorgram, but when I did I got a warning that plotly was not yet implemented for geom_GeomXsidebar and geom_GeomYsidebar and suggestion to report it here. It would be lovely if plotly were implemented for these geoms.
My data structure was
master - a data frame containing:
- region (character)
- envir_var_elevation (numeric)
- loggdppc (numeric)
- value (numeric)
- reactive_value (numeric)
df_plot - a data frame containing:
- envir.group (numeric factor)
- loggdppc.group (numeric factor)
- value.squish (numeric)
- reactive_value.mean (numeric)
df_plot was created by taking the data from master binning elevation and loggdppc and then finding the mean in each bin combination.
Here is my plot code
p_elev_income = ggplot(df_plot, aes(x = envir.group, y = loggdppc.group, fill = value.squish,
text = glue("reactive adapt: {reactive_value.mean}"))) +
geom_tile() +
geom_xsidehistogram(data = master, aes(x = envir_var_elevation, y = after_stat(density)), binwidth = .01, inherit.aes = F) +
geom_ysidehistogram(data = master, aes(x = after_stat(density), y = loggdppc), binwidth = 0.08, inherit.aes = F) +
ggside(x.pos = "bottom", y.pos = "left") +
xlab(xlab_name) +
ylab("Log GDP per Capita") +
scale_fill_gradientn(colours = blue_red.colors,
name = scale_name,
limits = limits_val,
breaks = breaks_labels_val,
labels = breaks_labels_val,
values = rescale(rescale_val),
na.value = NA
) +
theme(panel.background = element_rect(fill = 'white', colour = 'grey'),
ggside.panel.scale.x = 0.2,
ggside.panel.scale.y = 0.2)
ggplotly(p_elev_income)
Here's what the plot looks like when plotted normally:
And here's what it looks like when plotted with plotly:
I was using plotly because I wanted the hover text/tool tip ability, and that functionality did work correctly for me. Unfortunately, the side histograms disappeared. Also for my use case, I only need the hover text/tool tip on the main geom_tile portion of the graphic having it also appear on the side histograms would just be a bonus.
- Linguagem predominante
- R
- Estrelas
- 2.7k
- Forks
- 641
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de plotly/plotly.R
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 68/100
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 72/100
-
save_image Error Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 52/100
Todas as issues de plotly/plotly.R
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
briandconnelly/airnow#9 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
OHDSI/CohortConstructor#774 ·
-
pre-review R TeX Track: 5 (DSAIS)
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 60/100
openjournals/joss-reviews#11330 · 7 comentários ·
-
Release autosync 0.1.1 Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100