You can use the R compiler either in your own computer or in the site https://www.mycompiler.io/new/r

1. Learn to plot data

1.1 Use default plot function

Here is an example on plotting the cos curve. what is cosine curve?

x <- seq(-pi, pi, 0.1)
plot(x, cos(x))

After running this code, you can get a figure like

image-20231126130453338

TODO: