Re: [R] R for-loop to add layer to lattice plot

2020-10-28 Thread Luigi Marongiu
Awesome, thanks! On Wed, Oct 28, 2020 at 7:00 AM Deepayan Sarkar wrote: > > On Tue, Oct 27, 2020 at 6:04 PM Luigi Marongiu > wrote: > > > > Hello, > > I am using e1071 to run support vector machine. I would like to plot > > the data with lattice and specifically show the hyperplanes created by

Re: [R] R for-loop to add layer to lattice plot

2020-10-27 Thread Deepayan Sarkar
On Tue, Oct 27, 2020 at 6:04 PM Luigi Marongiu wrote: > > Hello, > I am using e1071 to run support vector machine. I would like to plot > the data with lattice and specifically show the hyperplanes created by > the system. > I can store the hyperplane as a contour in an object, and I can plot > on

Re: [R] R for-loop to add layer to lattice plot

2020-10-27 Thread Mark Leeds
Hi: I think you're writing over the plots so only the last one exists. Maybe try P = P + whatever but I'm not sure if that's allowed with plots. On Tue, Oct 27, 2020 at 8:34 AM Luigi Marongiu wrote: > Hello, > I am using e1071 to run support vector machine. I would like to plot > the data with

[R] R for-loop to add layer to lattice plot

2020-10-27 Thread Luigi Marongiu
Hello, I am using e1071 to run support vector machine. I would like to plot the data with lattice and specifically show the hyperplanes created by the system. I can store the hyperplane as a contour in an object, and I can plot one object at a time. Since there will be thousands of elements to plot