Comments (19)
I just tried your code and it ran fine, I see the normal expected plot. Maybe one of your packages has been updated and is interfering? Do you remember what packages you updated recently? Here's my sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252 LC_MONETARY=English_Canada.1252
[4] LC_NUMERIC=C LC_TIME=English_Canada.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ggExtra_0.2.3 ggplot2_1.0.1
loaded via a namespace (and not attached):
[1] Rcpp_0.12.0 digest_0.6.8 MASS_7.3-43 grid_3.2.2 plyr_1.8.3 gtable_0.1.2
[7] magrittr_1.5 scales_0.3.0 stringi_0.5-5 reshape2_1.4.1 proto_0.3-10 labeling_0.3
[13] tools_3.2.2 stringr_1.0.0 munsell_0.4.2 colorspace_1.2-6 gridExtra_2.0.0
from ggextra.
Maybe... I have updated many packages recently... But my sessionInfo()
looks very similar:
I will continue to investigate and give you a feedback. Thanks anyway!
R version 3.2.2 (2015-08-14)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.3 LTS
locale:
[1] LC_CTYPE=pt_BR.UTF-8 LC_NUMERIC=C LC_TIME=pt_BR.UTF-8
[4] LC_COLLATE=pt_BR.UTF-8 LC_MONETARY=pt_BR.UTF-8 LC_MESSAGES=pt_BR.UTF- 8
[7] LC_PAPER=pt_BR.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=pt_BR.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ggExtra_0.2.3 ggplot2_1.0.1.9003
loaded via a namespace (and not attached):
[1] labeling_0.3 colorspace_1.2-6 scales_0.3.0.9000 plyr_1.8.3 tools_3.2.2
[6] gtable_0.1.2 gridExtra_2.0.0 Rcpp_0.12.0 grid_3.2.2 munsell_0.4.2
from ggextra.
Got it!
It was something related to ggplot2.
Error in get(Info[i, 1], envir = env) :
lazy-load database '/home/paterno/R/x86_64-pc-linux-gnu-library/3.2/ggplot2/R/ggplot2.rdb' is corrupt
AlΓ©m disso: Warning message:
In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1
Erro: package or namespace load failed for βggplot2β
Removed ggplot2, installed again... restarted R session and it is working again!
Sorry for that!
All the best,
Gustavo
from ggextra.
Hmm... I just installed the dev version of ggplot2 and I'm getting the same error. Looks like ggplot2 changed something recently that broke this... :/
from ggextra.
Ah this is annoying. This likely won't be a simple fix π
from ggextra.
Ohhh.... That might be the case because I had updated ggplot2 from github. When I installed again I used install.packages
. So I think you are right, it is related to ggplot2 development version.
If you need more details or any help, I am glad to contribute.
Cheers
from ggextra.
Maybe it is not so bad. It can be some small bug inside de development version of ggplot2
.
from ggextra.
It's not really "bugs", they just completely changed the internals of ggplot2 and a lot of things just won't work anymore. It might take a while to get things to work with the dev ggplot2 version, if you want to use ggMarginal I would stick with the CRAN ggplot2 version
from ggextra.
Ok... so the problem is deeper! Sorry for that.
For the shiny apps then I will stick with the last cran release from ggplo2.
Hope you find a easy way out because ggExtra is a very nice package!
All the best,
Cheers
from ggextra.
Reported a few bugs on ggplot2, hopefully will help maybe this fix easier
from ggextra.
Well not so bad then.
I am sure Hadley can provide some insights about the Bugs or possible ways to fix it.
from ggextra.
I Just checked my package sensiPhy, which heavily depends on ggplot2 for ploting summary results!
Many errors comming with the dev version! π
from ggextra.
Yeah they've done tons of internal refactoring and external changes as well. It'll be a bit painful to migrate.
from ggextra.
Actually, for me this was good because we are organizing the first CRAN submission around september, Now I can delay the submission and fix the bugs before.
from ggextra.
The main issue I spent a lot of time on and still couldn't fix is making sure the margins are preserved in marginal plots. Seems to potentially be a bug in ggplot2 tidyverse/ggplot2#1317
Thanks @paternogbc for reporting the issue, gives me a chance to see all the much deeper issues with the new ggplot :)
from ggextra.
So I just updated ggExtra and did some tests with my shiny app that uses ggMarginal
. The major problems seems to be fixed. There is just some small overlap of the marginal plots inside the orginal axis.
You welcome @daattali, I am glad that it helped. ;)
I will keep doing more tests If I find anything new I`ll let you know.
from ggextra.
Yep, the problem you mention is exactly the one that I can't seem to fix and I reported a bug to ggplot2 about the margins. Hopefully everything other than that alignment is fixed. Glad to know it seems to be working better, do let me know if you find anything else strange if it's small. Thanks!
from ggextra.
@paternogbc I think I was able to fix all issues, including the alignment issue. When you have time, if you could test ggMarginal with the new ggplot2 version, let me know if it works
from ggextra.
@daattali great news, thanks for the fix. I'll update and keep on some tests.
I let you know if I find anything strange.
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.