Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Implement geom_bar_pattern in plotly?

Open
#2,317 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
r

Research direction

Start with the supplied R example using ggplot2::geom_bar_pattern and plotly::ggplotly(plot), then trace how this plot type is converted. Done means the mtcars example renders through ggplotly rather than failing, while preserving the patterned bar and position dodge behavior shown in the issue.

Written by the indexing model from the issue text.

Description


The use of geom_bar_pattern appears to be incompatible with plotly. The below graph will print in standard format but fail to print with ggplotly.

plot <- ggplot(mtcars, aes(x=factor(cyl), y=mpg))+
  geom_bar_pattern(aes(y=mpg, pattern=factor(vs)), stat="summary", width=0.5, position=position_dodge(0.7))
   
print(plot)
plotly::ggplotly(plot)
Dominant language
R
Stars
2.7k
Forks
641
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from plotly/plotly.R

All issues in plotly/plotly.R

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.