Displaying 20 results from an estimated 5000 matches similar to: "Outer margin (oma) settings for pairs()"
2006 Apr 10
2
Legend in the outer margin
Dear Rs
I have a 3x3 multiple plot. I would like to have a overall legend in
the outer right margin.
From the help archive, I found that it can be done by setting
par(xpd=NA). However, I couldn't find the correct values
for x and y co-ordinates for the legend. Please find the code snippet below:
par(mfrow=c(3,3), mar=c(4,4,0.9,0.5), oma=c(1,2,2,4),cex.main=1.1)
2005 Oct 25
1
pairs(oma) warnings (PR#8252)
Unlike R 2.1.1, version 2.2.0 generates warnings when an 'oma' argument as
passed to pairs():
A <- rnorm(100)
B <- rnorm(100)
pairs(cbind(A,B)) # no warning
pairs(cbind(A,B), oma=c(6,8,10,12)) # warnings in R 2.2.0
I think pairs() should draw the plot quietly, without warnings. Can't see
anything in the documentation indicating that an
2007 Aug 30
1
Barplot2 using for loop, how to adjust margins?
Hi R-users,
I inted to make multiple plots using for loop. The question is how can
I adjust the left hand side margin of the plot according to the
names.arg argument in barplot2. In every plot I have different
annotations in the y axis and they vary in length. Now when I have
fixed margins
opar <- par(mar=c(3,15,0,2)...
I get the same margins in all of the plots. That leaves lots of white
2010 Aug 14
1
Help with graphing impulse response functions
Dear colleagues/contributors,
I'd be pleased if someone could provide insights on how to plot impulse response functions in a format that can easily be copied in a word document just as plotting time-series of variables.
I had followed the outline suggested by Benhard Pfaff [see http://127.0.0.1:17693/library/vars/html/irf.html] but I am unable to get the impulse response functions in a
2006 Nov 30
1
strange error from R CMD check about xaxp
Dear R-devel,
Kurt had alerted me to the problem that the randomForest package that I
maintain has been failing checks in R-devel. However, I just can't see
why or where it's failing. I'd very much appreciate any pointer.
The failure occur when running the example code in varImpPlot.Rd:
> varImpPlot(mtcars.rf)
Error in par(opar) : invalid value specified for graphical parameter
2009 Nov 21
2
Fw: Re: title problem
It seems that there is a problem in
displaying subtitle in general, independently from
multi-plot display. when I do
plot (c(1,2,3), c(9,8,7), type = "l")
title(main = "Main title", sub ="Sub title",cex.main=2,
cex.sub = 2)
subtitle doesn't get displayed
> --- On Sat, 11/21/09, David Winsemius <dwinsemius at comcast.net>
> wrote:
>
2006 Dec 28
2
Plot window - save as Postscript question
R 2.4.0 for Windows
The following plot appears as a squared window (as all r-plots)
Not all subtitles are visible, but all subtitle will appear, when
changing the aspect ratio of the plot window with the mouse to a wide
format.
But does not work when using the save as postscript menu item from the
plot window.
is there any solution for that?
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1,
2000 Jan 10
1
'at' parameter in mtext(.., adj=0, outer=T) (PR#396)
Depending on the setting of par()$usr,
the 'at' setting in mtext(.., adj=0, outer=T) may cause the
text to appear in an anomalous position (e. g. in the first
instance below, at the left of the plot region rather than
at 'at=0' in the figure region), or the text may not appear
at all.
If one does not set the 'at' parameter the text appears
(with 'adj=0') on the
2011 Jun 10
2
Plotting NLS profiles
Hello list,
I'm trying to plot nls profiles, but the plot.profile.nls function in
R doesn't seem to accept any plot.default variables. Specifically,
I'd like to be able to change the x-axis title and the colors to black
and white. Has anyone had any luck with this?
If not, is there a way to override to plotting colors, perhaps in par()?
Thanks,
Sam
fm1 <- nls(demand ~
2008 Jun 26
1
Layout() coordinates and drawing lines / segments
Hello,
I am trying to wrap my head around the coordinates systems associated with
the layout() function ...with the end goal of simply drawing a decorative
line in the upper margin of my figure, which is composed of three plots.
My output is defined as this:
----------------------------------------------------------------------------
postscript("out.ps", horizontal=FALSE,
2008 Jun 30
2
Plotting question: Problem with strwidth in 2.7.1
R users,
I have a problem with function strwidth in 2.7.1. I'm trying to set
the plot margins in a way that horizontal
column labels will fit to the graph. tmp.t is a list of data.frame
objects. This code works well in 2.6.0.
...snip..
library(gplots)
for (i in names(tmp.t)) {
bmp(filename=paste(i, "_", Sys.Date(), ".bmp", sep=""),
width=1038,
2005 Sep 12
1
oma and sub-title
I want to add an outer subtitle to my 2x3-plot, but it's distance to the
lowest plots is very high: 6 lines or more?!
If I choose oma=c(5,0,2,0), it lies out of the plotting region and
disapprears. Obviously I make something wrong here. Help appreciated,
Thomas
x=seq(from=1, to=3.5, length=100)
par(mfrow = c(2, 3), oma=c(6,0,2,0))
## oma=c(5,0,2,0) will not work?!
plot(x,x^2)
plot(x,sin(x))
2012 Feb 07
1
Problem with plotting a square 1 x 3 plot and placement of outer margin text
Dear R-helpers,
Please see the attached plot.
The problem is that I have too much space between the x-axis label
(which is mtext in an outer margin) and the plots.
My par settings for this plot are:
>par(mfrow=c(1,3),oma=c(2,2,2,2),mar=c(5.1,4.1,4.1,2.1),pty="s")
>#here is the code that produces the three plots, which I have deleted for simplicity
>mtext("Log Wetland
2003 Jan 17
2
Re: Universal legend in plot
Dear R-users:
I asked a question on how I can have a universal legend in a plot and
received the following result. I tried using "layout" but I can't seem to
work on the "empty" plot (where I have to have the legend). I tried "oma"
but I couldn't improve the quality of the plot, and that I didn't know how
to specify all the line types using the
2012 Jun 02
1
mtext bug
Sir,
I have hit a the limits of my understanding of text / par / opar etc...
I have a few related xts data frames which have multiple columns, and have
written a for-loop to make a set of charts - however i do not get any
margin text when i run the loop.
when i test the code outside of the loop the margin text appears - however
when i run the loop the margin text does not appear ... what gives?
2009 Nov 24
1
Titles in plots overlap
Hi,
I use fCopulae package to draw different graphs of univariate and bivariate skew t. But the plots titles overlap. I tried using cex.main, font.main to adjust the size but they still overlaps. Here is my code:
par(mfrow = c(3, 1))
mu = 0
Omega = 1
alpha1 = 0
alpha2 = 1.5
alpha3 = 2
alpha4 = 0.5
Z1 = matrix(dmvst(x, 1, mu, Omega, alpha1, df = Inf), length(x))
Z2 = matrix(dmvst(x, 1, mu,
2010 Jan 20
2
legend in multiple plot
Dear R users,
I'm making multiple plots within the same pdf page (par(mfcol = c(5,1)), and
want a legend for this at the bottom of all the plots. From previous mails
it has been suggested to use par(xpd=TRUE), increase the margin at the last
plot, and then draw the legend. However, when I do this, the last plot gets
smaller with the same amount I increase the margin with.
The problem seems to
2008 Jul 18
1
problem with putting text in outer margins (mtext outer=TRUE)
Hi there,
I'm trying to get some text in the outer margins of my plots and am
having trouble - the margin text is overlapping my plots, even though
the outer margin I'm trying to put it in is very big.
I've simplified my problem down to this:
-------------------------
X11(width=7.5,height=10)
par(mfrow=c(6,1),oma=c(20,0,20,0), mar=c(0,3.1,1,2.1))
for (i in 1:6) {
2010 Apr 18
1
Slightly OT: OMA DM Solution
Hi,
anyone knows an open OMA DM tool that would be able to configure Nokia
phones (mainly the sip-stuff of the e-series) for use with asterisk?
Anything open i could find was the device manager from funambol, which was
last updated in 2006 :-(
Regards,
Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2004 Jun 26
0
Re: plot.new() warning from coplot()'s par(*, new=FALSE)
{diverted from the R-SIG-gui list}
>>>>> "PD" == Peter Dalgaard <p.dalgaard@biostat.ku.dk>
>>>>> on 26 Jun 2004 11:51:02 +0200 writes:
PD> James Wettenhall <wettenhall@wehi.edu.au> writes:
>> Hi,
>>
>> Does anyone know a good way to get rid of warnings like:
>> Warning message: calling