Coder Social home page Coder Social logo

Comments (5)

lionel- avatar lionel- commented on July 19, 2024

@thomasp85 Can you chime in here please?

from ggstance.

thomasp85 avatar thomasp85 commented on July 19, 2024

these are just oversight - can you provide an example of using position_dodge that doesn't work as expected with flipped orientation?

from ggstance.

bbolker avatar bbolker commented on July 19, 2024

OK,I was wrong about the first - position_dodge does seem to work (although it would be good to have a documentation patch: "Dodging preserves the vertical position of an geom while adjusting the horizontal position" is now an incomplete description of what position_dodge does ...)

However, the orientation of segments in the legends is still an issue (see also here and here)

thanks

library(ggplot2)
dd <- data.frame(x=1:4,y=rep(1:2,each=2),
                 xlo=(1:4)-0.5,
                 xhi=(1:4)+0.5,
                 f=factor(rep(letters[1:2],2))
                 )
ggplot(dd,aes(x,y,colour=f)) +
    geom_pointrange(aes(xmin=xlo,xmax=xhi),
                    position=position_dodge(0.1))

library(ggstance)
ggplot(dd,aes(x,y,colour=f)) +
    geom_pointrangeh(aes(xmin=xlo,xmax=xhi),
                    position=position_dodgev(0.1))

from ggstance.

bbolker avatar bbolker commented on July 19, 2024

I don't know if you do or don't want "bumps" (if not, I apologize) but I've just encountered this issue again ... this could possibly be fixed/worked around by adding a new key_glyph option ?

from ggstance.

lionel- avatar lionel- commented on July 19, 2024

ggstance is no longer under development so this issue would belong in ggplot2. Unfortunately I can't transfer issues to another organisation. Could you reopen in tidyverse/ggplot2 please?

from ggstance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.