I have a dataset like this:
a1 <- c("a","a","a", "b","b","b", "c", "c", "c", "d", "d", "d")
b1 <- c(7, 7, 7,5, 4, 4, 3, 3, 3, 3, 4, 6)
c1 <- c("1","2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12")
m1 <- data.frame(a1, b1, c1)
I want to plot this data and I want to plot Variable a1 and c1, but I want 4 different plot:
- for a1 = “a” –> x = 1, 2, 3 and y = 7, 7, 7, 5
- the same for “b” “c” and “d”.
Basically, I want a plot for every different value in a1 variable, where x value are value in c1 and y value are value in a1.
How can I do?
1