# How could I draw a force field (arrows) using AlgebraOfGraphics?

**URL:** <https://discourse.julialang.org/t/how-could-i-draw-a-force-field-arrows-using-algebraofgraphics/90301>\
**Category:** Visualization\
**Tags:** plotting\
**Created:** [November 15, 2022, 4:50pm UTC](https://discourse.julialang.org/t/how-could-i-draw-a-force-field-arrows-using-algebraofgraphics/90301 "2022-11-15T16:50:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinmestre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/martinmestre/32/215857_2.png) [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Post date:** [November 15, 2022, 4:50pm UTC](https://discourse.julialang.org/t/how-could-i-draw-a-force-field-arrows-using-algebraofgraphics/90301/1 "2022-11-15T16:50:19Z")

</div>

Hello,  
I have a dataframe where two columns give the position and two columns give the arrow, I would like to use AoG to plot it.  
Thanks

---

<div class="post-metadata">

**Author:** ![ianfiske](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@ianfiske](https://discourse.julialang.org/u/ianfiske)\
**Post date:** [November 15, 2022, 5:31pm UTC](https://discourse.julialang.org/t/how-could-i-draw-a-force-field-arrows-using-algebraofgraphics/90301/2 "2022-11-15T17:31:48Z")

</div>

There is an example with arrows in the gallery page for custom scales: [Custom scales · Algebra of Graphics](https://aog.makie.org/stable/gallery/gallery/scales/custom_scales/#custom_scales).

---

<div class="post-metadata">

**Author:** ![martinmestre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/martinmestre/32/215857_2.png) [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Post date:** [November 16, 2022, 4:17pm UTC](https://discourse.julialang.org/t/how-could-i-draw-a-force-field-arrows-using-algebraofgraphics/90301/3 "2022-11-16T16:17:43Z")

</div>

Thank you very much!
