I have a function f(p,q) which returns a vector of numbers.
I would like to plot the curve f for all the values of p and q that I have.
For instance, if p=(2,3,4) and q=(1,5,2), I would like the 3 plots f(2,1) ; f(3,5) and f(4,2) on the same graph with 3 different colors, and the legend that fits.
Is it possible to have the color and the type of line (dashed...) changing for each curve ? (that's possibly for a print without color as well). I have no differences adding "linetype".
ggplot(data = my_plot_data) +
aes(x = x, y = y, color = profiles, linetype=profiles) +
geom_line(linewidth=2)