Plot 2 or more groups with multiple levels in ggplot2 aes(group)

Solution 1:

The group= is insufficient to break them apart, change that to interaction(dist_type, sim_number):

ggplot(tn, aes(x = dx, y = dy, group = interaction(dist_type, sim_number), color = sim_number)) +
    geom_line() +
    geom_point()

enter image description here