Comments (6)
I've also tried this with all combinations of ggplot2 0.8.9/0.9.1 and GGally 0.3.2/0.3.1 with the same result
from ggally.
The problem is in the function, ggally_diagAxis(). With iris$Petal.Width, the minimum gridline (x = 0) is actually outside the range of the plot (0.076, 2.524), so when the function tries to use geom_text() to plot the labels on that gridline, it throws an error because the coordinates are outside of the plotting area. ggally_diagAxis() is going to need to be fixed to check for this, and then either extend the plotting area (not great, because then the ranges of the other plots in that row and column would need to be changed) or plot the labels on the next gridline (probably a better option).
Nice catch!
from ggally.
Mo,
This is fixed, and a new version of GGally 0.3.3, is on its way to CRAN now.
cheers,
Di
On May 29, 2012, at 5:16 AM, mo-seph wrote:
When I try to run the example code, I get the following error:
ggpairs(iris[,3:5])
[1] "box"
[1] FALSE
Error in unit(x, default.units) : 'x' and 'units' must have length > 0It works OK with ggpairs(iris[,1:3]), however
I'm using ggplot2_0.9.1 and GGally_0.3.2
Reply to this email directly or view it on GitHub:
#3
Di Cook
[email protected]
from ggally.
Excellent, look forward to playing with it!
Cheers,
dave
On Thu 31 May 2012, at 18:58, dicook wrote:
Mo,
This is fixed, and a new version of GGally 0.3.3, is on its way to CRAN now.
cheers,
DiOn May 29, 2012, at 5:16 AM, mo-seph wrote:
When I try to run the example code, I get the following error:
ggpairs(iris[,3:5])
[1] "box"
[1] FALSE
Error in unit(x, default.units) : 'x' and 'units' must have length > 0It works OK with ggpairs(iris[,1:3]), however
I'm using ggplot2_0.9.1 and GGally_0.3.2
Reply to this email directly or view it on GitHub:
#3
Di Cook
[email protected]
Reply to this email directly or view it on GitHub:
#3 (comment)
from ggally.
Works great now, thanks!
from ggally.
With the latest ggally installed from git, I am getting a similar error
Error in unit(tic_pos.c, "mm") : 'x' and 'units' must have length > 0
when I try the following code:
ggpairs(iris[,3:5], color='Petal.Width')
from ggally.
Related Issues (20)
- Hexagonal Bins for ggpairs Not Possible
- ggpairs Inability to Filter Pairs of Values
- ggts axis breaks do not align between continuous and discrete variables
- ggcorr does not support "non syntactically valid" column names. HOT 2
- Warning after correlationPlot - FingerPro
- Warning message: The dot-dot notation (`..scaled..`) was deprecated in ggplot2 3.4.0. HOT 1
- New Maintainer HOT 2
- CRAN request HOT 1
- Example case in documentation is using deprecated features
- ggscatmat: wrong faceting with ncol > 9
- cannot coerce type 'closure' to vector of type 'character' HOT 1
- Allow parallel sets into parallel coordinates? HOT 1
- Migrate off reshape? HOT 5
- Release GGally 2.2.0 HOT 1
- ggcorr() suggestion, add option to provide custom labels for the variables
- ggally_cor errors out if number of samples is less than 3 rather than returning NA
- failure in basic ggpairs example with GGally 2.20/ggplot2 3.4.4.9000/r-devel
- The custom functions don't Work in GGally HOT 1
- ggally_cor: argument "use" is meaningless
- Test suite error: could not find function "asIgraph" HOT 3
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 ggally.