diff options
author | ranke <ranke@d1b72e20-2ee0-0310-a1c4-ad5adbbefcdc> | 2006-05-08 17:44:54 +0000 |
---|---|---|
committer | ranke <ranke@d1b72e20-2ee0-0310-a1c4-ad5adbbefcdc> | 2006-05-08 17:44:54 +0000 |
commit | 83ea568d8e84ead51cf0cc61573c0f6e7931da1a (patch) | |
tree | ee6e25e34ddeaa090437d153975a2fe0fd9d846b /R/drplot.R | |
parent | d38e129954e952c0cc6bcbae88c5a2bcbca024f8 (diff) |
- Corrected the use of the par() function, so no
unnecessary devices are opened any more
- Adjusted the .Rout.save files to kriemhilds version
(R 2.3.0 from Debian unstable, i386)
git-svn-id: http://kriemhild.uft.uni-bremen.de/svn/drfit@78 d1b72e20-2ee0-0310-a1c4-ad5adbbefcdc
Diffstat (limited to 'R/drplot.R')
-rw-r--r-- | R/drplot.R | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -7,7 +7,6 @@ drplot <- function(drresults, data, pointsize = 12, colors = 1:8, devoff=T, lpos="topright") { - op <- par(no.readonly = TRUE) # Check if all data have the same unit unitlevels <- levels(as.factor(drresults$unit)) if (length(unitlevels) == 1) { @@ -88,6 +87,7 @@ drplot <- function(drresults, data, # If overlay plot is not requested, ask before showing multiple plots on the screen if (!postscript && !png && !pdf && length(dsubstances) > 1) { op <- par(ask=TRUE) + on.exit(par(op)) } } @@ -220,6 +220,4 @@ drplot <- function(drresults, data, dev.off() } } - # Reset the ask parameter to previous setting - par(op) } |