I have a table of data with multiple rows and columns, and I have to make a versus data table using two of these columns. Essentially, I have to set one column of data (column 3) as the y-axis and another column of data (column 5) as the x-axis. How do I accomplish this?
|
Assuming the name of the table is
The 3rd column would be data[[All,3]] and the 5th data[[All,3]].
There are many plot functions in Mathematica. In this case,
There are many, many options to tune those plots. I suggest looking up those in the extensive electronic documentation in the Help menu or by selecting a command and pressing F1 (Windows) Things to look up:
|
||||
|
|
Short versionUse Longer versionLet's create a dataset consisting of $x$, $x^2$, $\sin(x)$ and $\exp(x)$.
Now let's plot $\exp(x)$ over $x^2$. The intuitive way of doing this is extracting two separate lists from the dataset, namely the second and fourth columns, by using
A simpler solution however uses the rich syntax of the
The output of both of these is exactly the same: A value table for this can be displayed in a similar way, using
|
||||
|
|
|
It hasn't been mentioned yet, so: the Statistical Plots package features the function Here's a sample:
|
|||||
|





