Thanks Rui and Jeff,
I thought that transposing the matrix would let me plot it the way I thought
it would but it did not. How can I take:
matrix "e":
AAB BAB CCD DCD
x 1.75 2.25 3.25 3.75
y 6.25 6.75 7.25 7.75
and treat the x and y rows as the x and y axis values and plot these four
points? I'm having trouble with all matrices and plotting them. I am using
>plot (xbar, ybar, data = e)
and
> plot(e$xbar, e$ybar)
trying it as a data.frame also.
My end goal though is to use lm for all four of these points against another
point already established and look at their relative coefficients.
--
View this message in context:
http://r.789695.n4.nabble.com/Basic-matrix-manipulation-problem-tp4584734p4588928.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.