Comments (3)
Hi,
I would suggest using a Cumming plot rather than two Gardner-Altman plots to achieve what you want.
all.data <- tibble::tibble(Control1 = cont1, Treatment1 = treat1,
Control2 = cont2, Treatment2 = treat2)
all.data.tidy <-
all.data %>%
tidyr::gather(key = Group, value = Measurement)
dabest.all.data <-
all.data.tidy %>%
dabest(Group, Measurement,
idx = list(c("Control1", "Treatment1"),
c("Control2", "Treatment2")),
paired = FALSE)
plot(dabest.all.data)
If, however, you want two Gardner-Altman plots, then what you have done above (setting rawplot.ylim
) works. The nature of the Gardner-Altman plots is such that one can only set the ylims for the rawdata plot (on the left); the axes with the effect size and confidence interval is, by design, aligned to the axes on the left and currently cannot be set.
from dabestr.
Another question: how do I change the scale interval (for example, by 5, not 10). Thanks!
To the best of my knowledge, this is effectively not possible now. (We use cowplot
to stitch the raw swarmplot with the effect size plot. You might be able to isolate the axes, and then use ggplot's scale_y_continuous
to set the tick breaks, but I'm not sure how yet.)
from dabestr.
Thanks @josesho !
from dabestr.
Related Issues (20)
- Error in `levels<-`(`*tmp*`, value = as.character(levels)) : factor level [5] is duplicated HOT 3
- Repeated measures mixed model HOT 1
- Error in cumming graph using g of hedges HOT 1
- Factor levels and aesthetics in estimation plot HOT 2
- Vector graphic export produces hundreds of x-axes HOT 1
- Line disconnected and spacing customization HOT 1
- Arrange difference value in absolute order HOT 1
- Plot Aesthetics HOT 1
- Error in PermutationTest(ctrl measurement, test measurement, effect_size = effect_size_type. The two arrays do not have the same length. HOT 8
- Legend removing HOT 1
- development version 2023.9.12: Error in if (abs(es) > THRESHOLD) { : missing value where TRUE/FALSE needed HOT 2
- Error in bca.ci(boot.out, conf, index[1L], L = L, t = t.o, t0 = t0.o, : estimated adjustment 'a' is NA HOT 2
- Customizing Color Palettes in dabest_plot HOT 2
- Error with different sample sizes for independent samples HOT 2
- Backward compatibility HOT 6
- How to get dabestr to run with arrays of unequal length? HOT 4
- Effectsize measurement with unbalaced data HOT 9
- Issue with multiple between-group comparisons HOT 3
- Mis-match between text output and calculated values
- Contrast_ylim does not work 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 dabestr.