# Plots three scatter plots based on the orbit class of the object
fig1 <- plot_ly(x = x1,
y = y1,
type = "scatter", mode = "markers",
name = unique(df$Orbit.Class)[1],
width = 800, height = 430) %>%
add_lines(x = x1, y = fitted(mod1), name = "Apollo Fitted") %>%
add_markers(x = x2, y = y2, name = unique(df$Orbit.Class)[2]) %>%
add_lines(x = x2, y = fitted(mod2), name = "Amor Fitted") %>%
add_markers(x = x3, y = y3, name = unique(df$Orbit.Class)[3]) %>%
add_lines(x = x3, y = fitted(mod3), name = "Aten Fitted")