Comments (4)
Just saw that the density plots are actually line plots with a geom_density, hence the check on the fill
param. You can disregard question 1.
from ggextra.
You're really taking a good look at the code! I hope the documentation and the code are friendly enough to a third party. To answer question 2: if you look at the line in the middle of that chunk:
if (length(p$mapping) == 0) p$mapping <- p$layers[[1]]$mapping
I try to ensure there's a mapping to use X and Y from if none is provided. This would happen when you do something like ggplot(iris) + geom_point(aes(Sepal.Width,Sepal.Length))
- in this case, the main plot object does not have an X and Y mapping, but I was able to borrow it from the first layer. However, there are more complex ggplot calls where the main plot doesn't have a mapping and neither does the first layer, in which case x and y are needed. Does that help?
from ggextra.
However, there are more complex ggplot calls where the main plot doesn't have a mapping and neither does the first layer, in which case x and y are needed
Didn't know this, thanks, that answers.
from ggextra.
And to be honest, I can't give you such ggplot calls right now, because I've been very out of touch with this package and ggplot for a while. But when I made the package I did run into that issue, that much I do know :)
from ggextra.
Related Issues (20)
- support title alignment with the plot introduced in `ggplot2 3.3.0` HOT 1
- Does ggExtra provide normal fitting to marginal histograms? HOT 1
- Migrate from travis CI to GitHub Actions
- Is it possible to add counts on top of histogram bars? HOT 1
- Does ggMarginalGadget(plot) work from the Console Panel (Rstudio)? HOT 5
- Addin: errors messages in console
- Reconsider which versions of ggplot2 we test under? HOT 6
- Marginals from different data HOT 1
- Add statistics via ggstat or ggpubr ? HOT 3
- parameters for marginal plots (xparams) not going through: 'boundary', 'center' for histogram HOT 1
- ggMarginal gadget: plot type "densigram" is (the only one) missing HOT 1
- ggMarginal support for groupShape = T HOT 2
- `groupFill` uses `colour` aes? HOT 2
- ggMarginal grouped boxplots are different widths HOT 2
- ggplotly support? HOT 2
- mean and variance plot for ggMarginal HOT 1
- Variable boxplot size and order HOT 3
- The dot-dot notation (`..density..`) was deprecated in ggplot2 3.4.0. HOT 1
- Order of colored marginal boxplots to not match the order of the color factor used HOT 1
- Add a line at the marginal densities 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 ggextra.