Question : Answers:ggplot2 boxplot
Solution 1 (Accepted):
Ok.. I 'll answer my own question. As per the suggestion count values were stored as factor. Converting them to numeric did the trick
Thank you all for the suggestions.
Solution 2 :
I think your problem is that your Y-axis is not actually count, R understand count as a variable. Actually you only need to group the data by genotype and than do ggplot2.
df %>% group_by(genotype) ggplot(df) + geom_boxplot(mapping = aes(x=genotype, y = count))