Giter Site home page Giter Site logo

Comments (6)

zmjones avatar zmjones commented on July 21, 2024

No that is a bug. There is a check somewhere in there for ordering that is apparently broken or somehow the ordered factor is being coerced to a unordered factor.

My computer has been kaput and being repaired until today and I'm a bit behind on other work, but I will get to this soon.

Thanks for the report and glad you like the package!

from edarf.

stefanherzog avatar stefanherzog commented on July 21, 2024

Thanks for your thoughts on this!

from edarf.

zmjones avatar zmjones commented on July 21, 2024

Totally forgot about this for a while, sorry.

So you are right: by default ggplot2 groups factors (including ordered ones). So even though geom_line is called it just prints the points. The alternative would be to coerce ordered factors to integers. I think then I can probably label the axis using the factor labels. Will work on this when I get a chance. Hopefully the whole thing is a bit more reliable now!

from edarf.

stefanherzog avatar stefanherzog commented on July 21, 2024

Thanks!

from edarf.

zmjones avatar zmjones commented on July 21, 2024

So I spent some time with this today and I think it makes sense to just do the easy thing here, which is to cast factors to integers, and draw lines if the factor was ordered. So your example should be fixed now. I don't see an easy way of adding the labels but I may revisit this at a later date when I have some more time. If you wanted to take a crack at it you are more than welcome to. I refactored and simplified things a good bit.

from edarf.

stefanherzog avatar stefanherzog commented on July 21, 2024

Thanks so much! I tested it with my example above and it works nicely!

from edarf.

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.