convert_factor should be able to either convert from name/code to longname and the other way round. This would be really useful to switch back from longname to code in most dietplots due to the fact that longnames tend to clutter the legend in most diet plots. On the other hand species code can be frustrating when sharing plots with other people. A flexible conversion (both ways) could solve this issue. Plot code might get a bit hacky as a result though.
convert_factor should be able to either convert from name/code to longname and the other way round. This would be really useful to switch back from longname to code in most dietplots due to the fact that longnames tend to clutter the legend in most diet plots. On the other hand species code can be frustrating when sharing plots with other people. A flexible conversion (both ways) could solve this issue. Plot code might get a bit hacky as a result though.