I used the following code to generate a plot for a function with four different parameters.
Plot[
Evaluate@Table[(100*(1 - (x - 1)^(-1/r))/((x - 1)^(1 - 1/r) + 1)),
{r, 0.2, 0.8, 0.2}],
{x, 2, 6},
AxesLabel -> {"X", "y (Ooptimal choice)"}, PlotTheme -> "Detailed"]
The results are as follows:
I want PlotLegends
to show parameters; i.e., "r = 0.2", "r = 0.4"
etc. rather than the expressions. How can I do that?