GithubHelp home page GithubHelp logo

Comments (5)

mitchelloharawild avatar mitchelloharawild commented on June 10, 2024

Perhaps I'm missing something here, but is there a general requirement for the coordinates to be fixed? The arrows point to the same location in both plots, but have different angles when the plot's aspect ratio changes. I think this behaviour is expected when working with u and v as force offsets from the starting position.

It is definitely worth mentioning that when the arrow's angles are important, that using equal coordinate ratios for x and y axis is needed.

from ggquiver.

mitchelloharawild avatar mitchelloharawild commented on June 10, 2024

Thanks for the reprex and clear explanation by the way! 🎉

from ggquiver.

bart1 avatar bart1 commented on June 10, 2024

No problem, maybe it is not the case for all applications, for most applications I could see for the arrows the direction does matter. I encountered this when a student had some code where the arrows were pointing in a "wrong" direction. In our case it was a time series of vectors. As I know the u and v notation mostly from wind fields there the direction is important. I would say you know better how it is used and may see what the most common applications are.

from ggquiver.

mitchelloharawild avatar mitchelloharawild commented on June 10, 2024

For wind fields, I imagine it will be plotted on a map which would use the appropriate map coordinates. Perhaps I could add a message when the default ggplot2 coordinate space is used with geom_quiver(), suggesting that the angles may not be what is expected unless coord_equal() is used.

from ggquiver.

bart1 avatar bart1 commented on June 10, 2024

In this case we were interested in a timeseries of wind to that is why the map did not have dimensions. I think that warning/message sounds sensible.

from ggquiver.

Related Issues (11)

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.