The mk_pent function returns a matrix with 2 columns that is stored into a variable I called tmp. The x-values are in the first column and tmp[,1] is the first column of tmp, tmp[,2] is the second column, the y-values.
This is covered in "An Introduction to R" and you can also find discussion in the help page by doing ?"[". On Mon, Mar 24, 2014 at 1:48 PM, amcc <martinangelamcco...@eircom.net> wrote: > Apologies Greg for asking you more but what is tmp[,1] doing, I've tried > googling it and looking here for it but it's not making sense. > A > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/Customise-a-symbol-in-a-scatterplot-with-for-loop-tp4687386p4687470.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org 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. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com ______________________________________________ R-help@r-project.org 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.