I have a device that generates an excel spreadsheet for a number of parameters (e.g. height, biomass, NDVI, density etc.). These independent variables are included in the header names, and all have an assigned numeric value. I would like to generate multiple box plots (one for each variable) that uses the "treatment" column to generate multiple x values.
For example: To create a boxplot with y axis height, and x axis treatment, y axis biomass + x axis treatment and so on.
I know how to do this normally with ggplot2
and manually input this information, but I'd like advice on how to generate it so that y = column name
, x= treatment
.
Any help at all would be greatly appreciated :) Thanks in advance!