Menu

Vectorplot

In this tutorial, we’ll demonstrate how to draw a Vectorplot in Glimpse to visualize wind patterns.

First, add in the data from this .txt file.

Then, under Visual > Mark in the Inspector panel, set the Mark type to Shape.

image1


Drag the quantitative fields x into the X encoding and y into the Y encoding.

image2


Next, drag the quantitative field Length into the Size encoding and in the Inspector panel under Visual > Encoding, deactivate Legend.

image3


Then the last quantitative field to add in is Direction, which needs to be dragged into the Rotation encoding (for now this is not visible).

image4


To convert the marks into arrows, go to the Inspector panel under Visual > Mark > Contents and select this arrow from the Shape dropdown menu:

image5


To make the arrows clearer, go Visual > Mark > Color, set the Color to Black and from the Apply As menu select Fill Color. The vectorplot is now complete:

image6


This concludes this tutorial on drawing a Vectorplot. If you want to further customize your chart, please read the documentation.