[R] Datapoint tracking in scatterplot from plot() used on plsr() objects

David Winsemius dwinsemius at comcast.net
Thu Nov 24 22:22:00 CET 2016

> On Nov 24, 2016, at 8:34 AM, CG Pettersson <cg.pettersson at lantmannen.com> wrote:
> Dear all,
> I am working with PLS-regression using plsr() from the pls package. I have a medium sized dataset with 223 rows, ten reference columns and 192 columns with measurement data from an "electronic nose".
> There is a convenient way of inspecting what you have done in the calls to plsr() by typing plot(object) which results in a scatterplot predicted/measured. How do I track what row in the dataset is what point in the scatterplot? I have tried to read the documentation for plot() but don�t find the solution, probably because I don�t understand it :(. I am quite sure it is possible as I have seen something like that in other uses of plot() but I can�t find where.

Have you looked at matplot? Generally connects along columns. Might need to be:

 matplot( t(object). type="b")

> Med v�nlig h�lsning/Best regards
> CG Pettersson
> Senior Scientific Advisor, PhD
> ______________________
> Lantm�nnen Corporate R&D
> Phone:  +46 10 556 19 85
> Mobile: + 46 70 330 66 85
> Email: cg.pettersson at lantmannen.com<mailto:cg.pettersson at lantmannen.com>
> Visiting Address: S:t G�ransgatan 160 A
> Address: Box 30192, SE-104 25 Stockholm
> Webb: http://www.lantmannen.com<http://www.lantmannen.com/>
> Registered Office: Stockholm
> Before printing, think about the environment
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.

David Winsemius
Alameda, CA, USA

More information about the R-help mailing list