KB: Simple Line Chart in R

x=seq(-10,10,0.1)
y2=x^2
y3=x^3

plot(
  x=x,
  y=y2, type="l", ylim=c(-100,100), col="red", ylab="f(x)"
)
lines(x,y3, type="l", ylim=c(-100,100), col="blue")
legend("bottomright",c("f(x)=x^2","f(x)=x^3"), lty=c(1,1), col=c("red","blue"))