R graphic devices

29 views
Skip to first unread message

Carlos Crosetti

unread,
Feb 27, 2017, 8:01:21 AM2/27/17
to rattle-users
Hi, I am playing with two models (one is glm and the other adboost) over the same dataset and at the time I want a ROC curve I see one chart displayed and immeditely after the second chart overlaps the first, in the same R graphic window.

I attempted to cycle the charts and got a "no chart history" error message.

With a different project I got the "Predictive vs Observed" charts drawwn in smaller sizes and packed together in the same R graphics window.

I can manage the Rattle checkboxes to plot one at a time, but would be posible to get some configuration to plot several charts and either:
a) pack smaller versions into one window, 
b) one chart per window (several R graphic windows), or 
c) all charts at full size with history, to go back and forth?

Thanks, Carlos

Graham Williams

unread,
Feb 27, 2017, 8:11:06 AM2/27/17
to rattle-users
Thanks Carlos.

That sounds like a bug - I'll have a look. Which version of Rattle are you using? You could try the current development version:

> install.packages("rattle", repos="http://rattle.togaware.com")

In the meantime the actual code to plot is available in the Log tab and you can take paste that into the R Console to replicate the plots.

Regards,
Graham

--
You received this message because you are subscribed to the Google Groups "rattle-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rattle-users+unsubscribe@googlegroups.com.
To post to this group, send email to rattle...@googlegroups.com.
Visit this group at https://groups.google.com/group/rattle-users.
For more options, visit https://groups.google.com/d/optout.

Carlos Crosetti

unread,
Mar 12, 2017, 8:33:59 AM3/12/17
to rattle-users
Te version of Rattle I am using is the 4.1.0, now I will try redoing the scnario with the development version as per your advice, thanks, Carlos

Carlos Crosetti

unread,
Mar 12, 2017, 8:33:59 AM3/12/17
to rattle-users
Graham, on a fresh R install (3.3.2, 64bit windows) I installed the dev version of Rattle, whose ID is 5.0.7 (out from 4.1.0 seen before)

I loaded a sample dataset and ran DT, Linear and NNet models on it. While doing Evaluate for "Pr vs Obs", I can see three "mini" charts occupying the R graphic context, split in 4 quadrants, 3 being occupied by the scatter plots.

Then I ran the script from the log in a standalone R window.

The "Predicted vs Observed" plots were displayed subsequently at full size, so as each chart instance was drawn, the subsequent replaced the old. The same happened for the ROC charts, all ran at full size, and the new replacing the old.

So it seems the ROC display logic (triggered from Rattle) is not exactly the same as the Predicted vs Observed as the latter is doing quite a bit more in terms of the display space anagement.

Is it expected to have three ROC charts displaed in the same R graphic context at the same time, occupying 3 of 4 quadrants, as in the Pr vs Ob charts?

Please understand this is not critical, just trying to understand what is the expected behavior, thanks for the prompt support provided. Carlos

On Monday, February 27, 2017 at 10:01:21 AM UTC-3, Carlos Crosetti wrote:

Graham Williams

unread,
Mar 13, 2017, 9:26:22 AM3/13/17
to rattle-users
Thanks Carlos.

Yes, it is how it is coded within Rattle and perhaps Rattle should include the grid layout code that plots the three plots in one into the Log tab. Then in running the Log script separately you can choose to do that or drop that line and have the three separate plots. I'll look to update to include the grid command in the Log

Regards,
Graham

--
Reply all
Reply to author
Forward
0 new messages