I have a dataset that is something like this:
A, B, C, D, E
1, 2, 3, 4, 5
2, 3, 4, 5, 6
3, 4, 5, 6, 7
...
I want to make a ggplot2 graph in R that is a boxplot where each box corresponds to a letter. According to what I researched, the way to do this is having something like this as dataset:
Letter, Value
A, 1
A, 2
A, 3
...
B, 2
B, 3
B, 4
...
...
E, 5
E, 6
E, 7
The original dataset doesn't need to have the same amount of elements for each box actually. Is there any way to a) do the boxplot with the original dataset without changing it, using ggplot2 (not the builtin boxplot of R), this is what I really want, if there is no way, then: b) transform one dataset to another with R?
Thank you!
P.S. (I don't know if I can ask this in the same question, if no, I am very sorry) If you know any good tutorial for beginners in ggplot2, that actually teaches how to use ggplot instead of qplot, I would appreciate it a lot. Thank you again!