How do you plot a quadratic equation in R?

To plot a quadratic equation in R, you can use the plot() function. The syntax for this is plot(x, y, type="l", col="red"), where x is the x-axis values and y is the y-axis values. You can also specify the type of line you want to plot (e.g. type="l" for a line plot) and the color of the line (e.g. col="red").