I wanted to create multiple Boxplots for biomarker-analysis using ggplot and facet_grid and stratify them by a FILL_FACTOR. Unfortunately these values are stored in seperate columns.
I wanted to know if there is a smart solution to change the dataframe for this purpose.
The dataframe example is:
Bio1 Bio2 Bio3 Bio4 FILL_FACTOR
<dbl> <dbl> <dbl> <dbl> <fct>
1 215 160. 1.18 11.0 Survived
2 9 47.2 0.05 13.2 Survived
3 73 6947 5.87 14.3 Died
4 31 2297 6.28 19.3 Died