Opening the book…
Here's some preliminary commands to run if they haven't been yet.
And for this section, we will need to let julia know to use the Plots package:
We will want to produce plots of datasets, we'll start with just some random data. The following produces the values 1 to 10 for x and random integers between 1 and 10 for y:
The following will produce a scatter plot of the data, where each point is plotted as a point.
If we wanted the data to be plotted with lines connecting the points, we use the same plot command as we did above.
and we can plot both points and lines with:
11.4: Plotting Data is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.
The book could not be loaded just now.