Is there a way to set or mask par()
in a local environment? I'm not terribly familiar with R environments so I'm not clear on why this wouldn't be possible, although I definitely understand why it isn't the default behavior. I saw this question but I don't know enough to know whether it applies here. I'd also be surprised if there isn't some way to tweak the search path to get it to work.
Then again, there's no way to tweak the algorithm that decides whether to omit some of your axis labels... would it be so hard to just have a switch to turn the feature off and let users pay the price? That seems to have been the design philosophy for everything else in the language (and I'm kind of starting to appreciate it).
In addition to the other answer(s) and comments, note that graphical parameters are local to the graphics device, so you can open a new graphics device, set the parameters you want, then when you are through close the device (or switch back to the other one) and the previous parameters will be in effect. A quick example:
dev.new()
par(col='blue')
hist(rnorm(100))
abline(v=0, lwd=5)
dev.new()
par(col='red')
hist(rnorm(1000))
par(lwd=5)
abline(v=0)
dev.off()
plot(runif(25), rnorm(25))
abline(h=0, lwd=3)
See the help for dev.list
and dev.set
for details on switching between graphics devices.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments