Coder Social home page Coder Social logo

incorporate vertical dodging? about ggstance HOT 5 CLOSED

lionel- avatar lionel- commented on July 19, 2024
incorporate vertical dodging?

from ggstance.

Comments (5)

lionel- avatar lionel- commented on July 19, 2024

Hi Ben.

The position stuff is automatically handled in ggstance's horizontal layers. I think that's a more user friendly solution than having to deal with additional positions.

Maybe it's still useful to provide manual vertical dodging but what would be the use cases?

from ggstance.

bbolker avatar bbolker commented on July 19, 2024

I wanted to create a faceted dot plot like this, but with dodging rather than vertical jittering ... I guess I could use geom_pointrange with zero-length ranges ... ?

dd <- expand.grid(g=c("A long long label","B long long label"),
                  f=c("a","b"),h=c("c","d","e"),rep=1:10)
set.seed(101)
dd$y <- sample(1:4,replace=TRUE,size=nrow(dd))
library(ggplot2)
ggplot(dd,aes(y,g,colour=h))+
    stat_sum(position=position_jitter(width=0,height=0.5))+
                 facet_wrap(~f,ncol=2)

from ggstance.

lionel- avatar lionel- commented on July 19, 2024

you're right that it would be useful there. I'll see if I can reuse the flipping internals to easily make a position_vdodge(). I'm just a bit worried about confusing users of the horizontal layers, as they could try to use these new positions. Maybe the new vertical positions should be used in those layers then?

from ggstance.

lionel- avatar lionel- commented on July 19, 2024

Here you go @bbolker

I think I'll drop the automatic conversion strategy in ggstance before the CRAN release. It won't change anything for the default stats, geoms and positions, but when a different component is chosen it will have to be a version provided in ggstance rather than ggplot2. The interface will probably feel less magical this way, and it makes more sense with the new separately flipped positions.

cc @smouksassi who might be interested in these positions.

from ggstance.

smouksassi avatar smouksassi commented on July 19, 2024
                                                                                  Dear lionel thanks for keeping me in the loop.I indeed use many for ggstance flipped geom ! Bests,Samer                                                                                                                                                                                                                                                                                                                                        Swipe typed from Blackberry.                                                                                                                                                                                                                From: Lionel HenrySent: Saturday, April 16, 2016 13:30To: lionel-/ggstanceReply To: lionel-/ggstanceCc: Samer MouksassiSubject: Re: [lionel-/ggstance] incorporate vertical dodging? (#4)Here you go @bbolker 

I think I'll drop the automatic conversion strategy in ggstance before the CRAN release. It won't change anything for the default stats, geoms and positions, but when a different component is chosen it will have to be a version provided in ggstance rather than ggplot2. The interface will probably feel less magical this way, and it makes more sense with the new separately flipped positions.

cc @smouksassi who might be interested in these positions.

—You are receiving this because you were mentioned.Reply to this email directly or view it on GitHub

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.