To answer your other question - you can set the linecolor attribute like so:
plot(1:50, f, linecolor = "mediumvioletred")
To answer your other question - you can set the linecolor attribute like so:
plot(1:50, f, linecolor = "mediumvioletred")