I have a data frame with 76 columns of an equal number of species, I want to plot in different plots each species using a loop. However, I want to use the colnames to obtain each plot with the name of each species. Someone could help me with my problem.
I use the following expression in the loop:
title(main=expression(paste("density of",colnames(df))))
I tried with this one:
title(main=expression(paste("density of",colnames(df[,i]))))
Thank you