I’d like to create a plot in R and I have two independent variables which I’d like to list each levels of the factors in the legend. The code I have now is a for loop. I’d like to have each item of the legend shown with the temperature and sediment shown on first time […]

- Tags "blue", "GREEN3", 0 mg.cm^-2 (A) (0 NTU) My code is below: for (tr in 1:8){ for (s in 0:max(Sages)){ h[s+1, 0 mg.cm"^-2*" \n (0 NTU) (A)"), 0 mg.cm"^-2*" \n (0 NTU)")), 1, 120 mg.cm"^-2*" \n (13.2-29.2 NTU)")), 2, 30 mg.cm"^-2*" \n (3-8.83 NTU)")), 30 mg.cm"^-2*"\n (3-8.83 NTU)")), 60 mg.cm"^-2*" \n (5.9-14.7 NTU)")), 60 mg.cm"^-2*"\n (5.9-14.7 NTU)")), 85, black, cex=0.75, col=c('black', col=cl[tr]) Agetr<-Age[Treat==Streats[tr]] probtr<-prob[Treat==Streats[tr]] legend("topright", expression(paste("29°C, expression(paste("31°C, H, I'd like to create a plot in R and I have two independent variables which I'd like to list each levels of the factors in the legend. The code, legend=c( expression("29°C, lty=c(1, lty=l[tr], RED, text.width = 15) } Any help is greatly appreciated! Thanks!, tr, type = "l", xlim=c(0, ylim=c(0