Comments (5)
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.
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.
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.
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.
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)
- Error using new ggplot2 dev version and ggstance HOT 3
- geom_errorbarh masks ggplot2's version HOT 1
- x y axis issue HOT 6
- Modify bars in `geom_pointrangeh` HOT 1
- Would it be possible to add an hjust argument to position_stackv to automate text label positioning in stacked horiztonal bar plots? HOT 1
- Broken 'geom_barh' or stupid user? HOT 1
- Tests fail in dev ggplot2
- Order of items in legend HOT 6
- Should stat_counth() be exported? HOT 1
- differences between Geomerrorbarh in ggplot2 and ggstance HOT 2
- document aesthetics?
- ggstance error with height argument (All height aesthetics in ggplot no longer work if ggstance is loaded) HOT 1
- geom_violinh fails with warning to "Please use `to_lower_ascii()`" with newly-released ggplot2 HOT 3
- Update vdiffr test cases for new ggplot2 release
- Warning: Ignoring unknown parameters: height
- The coord_flip() function not well in geom_signif, is it possible to use ggstance to solve?
- functionality missing from ggplot2? HOT 5
- Is this possible to achieve this with the ggplot2 3.3.0?
- Is it possible to achieve a histogram with a horizontal boxplot in the ggplot2 3.3.0? HOT 1
- question, not issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ggstance.