Comments (5)
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.
Thanks for the reprex and clear explanation by the way! 🎉
from ggquiver.
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.
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.
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)
- Add support for vector length scaling
- Extend arrows to support ggarrow via Suggest
- Add vector centering HOT 1
- Implement ggquiver convenience function HOT 1
- Add grid detection
- Consider changing scale to size
- Add rescaling option to rescale the vectors to Z-scores
- not arrow plot when using with qmplot HOT 2
- Computation failed in `stat_quiver()`: argument is of length zero HOT 2
- geom_quiver does not work together with geom_sf 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 ggquiver.