question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PlotnineError: "'position_jitterdodge' requires at least one aesthetic to dodge by."

See original GitHub issue

https://github.com/has2k1/plotnine/blob/90412f4b88ae217a378c7a15b7db579add8a9fef/plotnine/positions/position_jitterdodge.py#L50-L58

(
    ggplot(df, aes(x='x_val', y='y_val', color='device'))
    + geom_boxplot() 
    + geom_jitter(position=position_jitterdodge())
)

The code works fine when using geom_dodge:

(
    ggplot(df, aes(x='x_val, y='y_val, color='device'))
    + geom_boxplot() 
    + geom_jitter(position=position_dodge(0.75))
)

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
has2k1commented, Apr 1, 2020

It will be in the next release. I am hoping for next week.

0reactions
jvschoencommented, Apr 1, 2020

@has2k1 Using fill corrected this for me. When you say the bug is fixed, is it fixed in a pip install update?

Glad you got it working! Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

r/ggplot - Use position_jitterdodge without a fill aesthetic
Ok, here's my workaround. Specify fill along with the aesthetic you really want ( color in my case), then blank out fill with ......
Read more >
Simultaneously dodge and jitter — position_jitterdodge • ggplot2
This is primarily used for aligning points generated through geom_point() with dodged boxplots (e.g., a geom_boxplot() with a fill aesthetic supplied).
Read more >
position_jitterdodge: Simultaneously dodge and jitter in ggplot2
This is primarily used for aligning points generated through geom_point() with dodged boxplots (e.g., a geom_boxplot() with a fill aesthetic ...
Read more >
Source code for plotnine.positions.position_jitterdodge
[docs]class position_jitterdodge(position): """ Dodge and jitter to ... PlotnineError( "'position_jitterdodge' requires at least one " "aesthetic to dodge ...
Read more >
R ggplot2 Error: geom_point requires the following missing ...
How to avoid the ggplot2 "Error: geom_point requires the following missing aesthetics: y" in R - 2 R programming examples - Syntax in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found