How to make a plot with 2 factors?