# Create a scatter plot with two economic variables, x & y, for each country?

**URL:** <https://community.wolfram.com/t/create-a-scatter-plot-with-two-economic-variables-x-y-for-each-country/12574>\
**Category:** Questions\
**Tags:** graphics-and-visualization\
**Created:** [June 8, 2018, 4:45am UTC](https://community.wolfram.com/t/create-a-scatter-plot-with-two-economic-variables-x-y-for-each-country/12574 "2018-06-08T04:45:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![evenezian](https://avatars.discourse-cdn.com/v4/letter/e/bbce88/32.png) [@evenezian](https://community.wolfram.com/u/evenezian)\
**Post date:** [June 8, 2018, 4:45am UTC](https://community.wolfram.com/t/create-a-scatter-plot-with-two-economic-variables-x-y-for-each-country/12574/1 "2018-06-08T04:45:34Z")

</div>

I have two vectors of equal length downloaded from the internet. They relate to two economic variables, x and y, in 100 countries. How do I get a graph of y as a function of x so I can visualize the relation?

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [June 8, 2018, 6:23am UTC](https://community.wolfram.com/t/create-a-scatter-plot-with-two-economic-variables-x-y-for-each-country/12574/2 "2018-06-08T06:23:45Z")

</div>

You can try

```
twoVectors = {{1, 2, 3, 4, 5, 6}, {3, 1, 5, 3, 7, -1}};
ListPlot[Transpose[twoVectors]]

```

There is a tutorial on “Plotting lists of data”: [Graphics and Sound—Wolfram Documentation](http://reference.wolfram.com/language/tutorial/PlottingListsOfData.html)
