I have a df of 17 variables (my samples) with the condition location which I would like to plot based on a single gene "gene1" When plotting:
library(DeSeq2) plotCounts(df, "genename", intgroup=c("location"))
By default, the function plots the "conditions" alphabetically on the graph eg: East-Mid-West. But I would like to order them so I can see them on the graph West-Mid-East.
Is there a way of doing this? Thanks,