Giter VIP home page Giter VIP logo

Comments (6)

mo-seph avatar mo-seph commented on August 12, 2024

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.

jcrowley11 avatar jcrowley11 commented on August 12, 2024

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.

dicook avatar dicook commented on August 12, 2024

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 > 0

It 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.

mo-seph avatar mo-seph commented on August 12, 2024

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,
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 > 0

It 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.

mo-seph avatar mo-seph commented on August 12, 2024

Works great now, thanks!

from ggally.

gokceneraslan avatar gokceneraslan commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.