[R] plotly: ability to drag points on x axis only and prevent change of y axis value

2020-12-10 Thread Andras Farkas via R-help
Hello, wonder if you could provide input on the following: please see toy example below, wanted to see if there is a way to have restrictions on how the points are dragged on the plot. More specifically I would like the points draggable horizontally ONLY and have their y axis value remain fixed

Re: [R] second legend in biplot

2020-12-10 Thread PIKAL Petr
Hallo Jim It is OK, your discussion was helpful as I found another way how to present PCA results. It is my job to tweek the code to suite my purpose. Cheers Petr > -Original Message- > From: Jim Lemon > Sent: Thursday, December 10, 2020 9:57 AM > To: PIKAL Petr > Subject: Re: [R] se

Re: [R] second legend in biplot

2020-12-10 Thread PIKAL Petr
Thank you Jim I am almost sure that biplot and prcomp itself cannot do point (text) coding according to some factor. The closest way to what I want to achieve is to use result from prcomp and add points into existing biplot, something like that PCA <- prcomp(iris[,-5], scale=T, center=T) biplo