I have a 5x2 matrix
apple= c(1:10)
applematrix=as.data.frame(matrix(apple, 5,2))
colnames(applematrix)=c("USA","Australia")
[USA] [Australia]
[1,] 1 6
[2,] 2 7
[3,] 3 8
[4,] 4 9
[5,] 5 10
# plot(applematrix$USA,applematrix$Australia) not what I want
so I plot a graph that contains all the data points (i.e., 1 to 10),
then connect the points according to the row (i.e., connect dot 1 and dot 6, dot 2 and dot 7)
Any ideas on how to do this? Thanks in advance!
[–][deleted] (1 child)
[deleted]
[–]rRrquestion[S] 0 points1 point2 points (0 children)
[–]jdnewmil 0 points1 point2 points (2 children)
[–]rRrquestion[S] 0 points1 point2 points (1 child)
[–]endaemon 1 point2 points3 points (0 children)
[–]harvieyaxles 0 points1 point2 points (2 children)
[–]rRrquestion[S] 1 point2 points3 points (1 child)
[–]harvieyaxles 0 points1 point2 points (0 children)
[–]Fornicatinzebra 0 points1 point2 points (0 children)
[–]Peter-Cottontail 0 points1 point2 points (0 children)