Practice: Base-R Plots
In this short practice exercise, you will implement the high-level function plot. It is convenient for fast checks and does not require installing additional packages. This exercise does not count toward your grade. It is just for practice!
Exercise:
- Modify the code
plot(cars)to change the shape and color of the points. - Use the jpeg() driver and
dev.off()to save the plot on your computer.