I’m writing a program in R. I have a dataset like this:
category x-value y-value
1 2 5
1 3 1
1 4 10
1 5 23
2 2 12
2 3 15
2 4 21
2 5 29
3 2 34
3 3 45
3 4 7
3 5 9
And I want to find a simple way to group the data by “category” and plot these 3 sets of data on a single xyplot.
Thanks!
Using
ggplot2?Something like this?
OR this?