0

How do you combine two or more fitted models into one scatterplot?

Here is my code.

variable data contains the data for the number of trees and number of flowers.

plot(numTree ~ numFlower, col = "red", data = data)
plot(numTree ~ 1 + numFlower, col = "green", data = data)
plot(numTree ~ 2 + numFlower, col = "blue", data = data)

I only know how to plot 3 different scatterplots using this. But how do I make all 3 of them fit into one scatterplot?

LilPotato
  • 1
  • 1
  • 2
    Change the second two `plots` to `points` (see the manual page `?points`. You may have to set the x and y axis limits in the first plot command to adjust for the data in the second two. – dcarlson Oct 21 '21 at 23:40

0 Answers0