Multiple graphs in one drawing [R]

I would like to build two functions f1 and f2 on the same graph. With the following code, I found that the axis scales of the two graphs are different. Is there any way to make the scales the same?

plot(f1, 0, 1)
par(new=TRUE)
plot(f2, 0, 1)
+5
source share
1 answer

Use function curve:

plot(f1, 0, 1)
curve(f2, 0, 1, add=TRUE)
+3
source

All Articles