Hello Everyone, I was wondering if anyone knows a solution to a problem I am experiencing. I have an R script that creates multiple graphs of the data in several data file using the partimat() function that is located in the klaR library. I would like to get this graphs into a single image similar to the way one can use the par() function and then the plot() function to put multiple plots side by side. The problem is that the par() function does not work with partimat() so I was wondering if there is an equivalent way of achieving the same result when using partimat(). I have searched for several hours already and I have not been able to find a solution. I would greatly appreciate any help. Attached is the script as well as the end result I would like to get after running the script. Thank you, Antelmo Aguilar
On Mar 28, 2013, at 1:45 PM, Antelmo Aguilar wrote:> Hello Everyone, > > I was wondering if anyone knows a solution to a problem I am experiencing. I have an R script that creates multiple graphs of the data in several data file using the partimat() function that is located in the klaR library. I would like to get this graphs into a single image similar to the way one can use the par() function and then the plot() function to put multiple plots side by side. The problem is that the par() function does not work with partimat() so I was wondering if there is an equivalent way of achieving the same result when using partimat(). I have searched for several hours already and I have not been able to find a solution. I would greatly appreciate any help. Attached is the script as well as the end result I would like to get after running the script.What happens is that inside the partimat.default function this line appears: opar <- par(mfrow = c(nvar, nvar), mar = mar, oma = rep(3, 4), xpd = NA) So the graphics setup is being driven by the structure of the data that is being given (which you have not described.) -- David Winsemius Alameda, CA, USA
Hello David, Thank you for letting me know that the partimat() function calls that function. I am kind of knew to R so I do not know exactly how to describe the structure. If I understand correctly, what I essentially need to do is pass in all the different data sets into one partimat() function and then the partimat() function will create the different plots and the way the different data sets get passed in is by describing a structure of the different data and passing it into the partimat() function. Is my thinking correct? Would it also be possible if I could be directed to a website that shows me how to describe a data structure or if someone could be so generous as to tell me how to do this? I would greatly appreciate it and thank you for the help. Thanks, Antelmo Aguilar ________________________________________ From: David Winsemius [dwinsemius at comcast.net] Sent: Thursday, March 28, 2013 9:15 PM To: Antelmo Aguilar Cc: r-help at r-project.org Subject: Re: [R] Help partimat() On Mar 28, 2013, at 1:45 PM, Antelmo Aguilar wrote:> Hello Everyone, > > I was wondering if anyone knows a solution to a problem I am experiencing. I have an R script that creates multiple graphs of the data in several data file using the partimat() function that is located in the klaR library. I would like to get this graphs into a single image similar to the way one can use the par() function and then the plot() function to put multiple plots side by side. The problem is that the par() function does not work with partimat() so I was wondering if there is an equivalent way of achieving the same result when using partimat(). I have searched for several hours already and I have not been able to find a solution. I would greatly appreciate any help. Attached is the script as well as the end result I would like to get after running the script.What happens is that inside the partimat.default function this line appears: opar <- par(mfrow = c(nvar, nvar), mar = mar, oma = rep(3, 4), xpd = NA) So the graphics setup is being driven by the structure of the data that is being given (which you have not described.) -- David Winsemius Alameda, CA, USA
On 29.03.2013 15:59, Antelmo Aguilar wrote:> Hello David, > > Thank you for letting me know that the partimat() function calls that function. I am kind of knew to R so I do not know exactly how to describe the structure. If I understand correctly, what I essentially need to do is pass in all the different data sets into one partimat() function and then the partimat() function will create the different plots and the way the different data sets get passed in is by describing a structure of the different data and passing it into the partimat() function. Is my thinking correct? Would it also be possible if I could be directed to a website that shows me how to describe a data structure or if someone could be so generous as to tell me how to do this? I would greatly appreciate it and thank you for the help.partimat is intended to plot several plots for each combination of explanatory variables in a classification problem. If you want to generate such plots separately and/or combine them in another way, see the help page. It says "See Also: for much more fine tuning see drawparti". The latter function allows to generate a single plot that can again be arranged within others by the user. Best, Uwe Ligges> Thanks, > Antelmo Aguilar > ________________________________________ > From: David Winsemius [dwinsemius at comcast.net] > Sent: Thursday, March 28, 2013 9:15 PM > To: Antelmo Aguilar > Cc: r-help at r-project.org > Subject: Re: [R] Help partimat() > > On Mar 28, 2013, at 1:45 PM, Antelmo Aguilar wrote: > >> Hello Everyone, >> >> I was wondering if anyone knows a solution to a problem I am experiencing. I have an R script that creates multiple graphs of the data in several data file using the partimat() function that is located in the klaR library. I would like to get this graphs into a single image similar to the way one can use the par() function and then the plot() function to put multiple plots side by side. The problem is that the par() function does not work with partimat() so I was wondering if there is an equivalent way of achieving the same result when using partimat(). I have searched for several hours already and I have not been able to find a solution. I would greatly appreciate any help. Attached is the script as well as the end result I would like to get after running the script. > > What happens is that inside the partimat.default function this line appears: > > opar <- par(mfrow = c(nvar, nvar), mar = mar, oma = rep(3, > 4), xpd = NA) > > So the graphics setup is being driven by the structure of the data that is being given (which you have not described.) > > -- > > David Winsemius > Alameda, CA, USA > > ______________________________________________ > R-help at 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. >