subplot - merging titles following ggplotly conversion
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- R
- Estrelas
- 2.7k
- Forks
- 641
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
data(faithful)
p1 <- plotly::ggplotly(
ggplot(faithful, aes(x = eruptions)) +
geom_histogram(bins = 20) +
theme_minimal() +
labs(title = "A.")
)
p2 <- plotly::ggplotly(
ggplot(faithful, aes(x = waiting)) +
geom_histogram(bins = 20) +
theme_minimal() +
labs(title = "B.")
)
pl <- subplot(p1, p2, nrows = 1, titleX = TRUE)
## note that changing to labs(tag = "A.") results in loss of the 'tag' at the ggplotly function.
I am creating a gglot (histogram, in this case) which includes a sub-panel label. I want to then convert to a plotly figure using the plotly::ggplotly function. The label is transmitted faithfully to each of p1 and p2. However, when combining these into a subplot, the label seems to be merged . I lose the 'A.' label on the first plot p1, generally. The titleX option does not prevent this from occurring.
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.
Direção de pesquisa
Comece com o exemplo reproduzível de dados faithful usando ggplotly e subplot e, em seguida, acompanhe como subplot combina os títulos de p1 e p2 quando titleX está habilitado. Confirme o comportamento para labs(title = "A.") e labs(title = "B."); considera-se concluído quando os dois rótulos continuarem visíveis após a conversão e a combinação.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- r
- Domínio
- data-visualization
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100