Message Boards Message Boards

GROUPS:

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

Posted 4 months ago
260 Views
|
1 Reply
|
1 Total Likes
|

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?

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": http://reference.wolfram.com/language/tutorial/PlottingListsOfData.html

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract