Displaying 20 results from an estimated 1000 matches similar to: "Write text in the"
2007 Apr 27
0
Write text in the "device region" of a graphic device
Hello,
I started a graphic device:
>par(oma = c(2,0,0,0), mfrow=c(2,2) )
in the cols and rows are three "image"s.
Now I want to write a text in the "device region", it's the
main title of the graphic device. But when I use "mtext()" I can
only write in the "figure region" of my four plots.
Has anybody an idea?
Thanks a lot.
Felix
My R Code:
2007 May 07
1
different hights & centering in one device region
Hello,
I have a question. I creat a PDF file with four rows and
two cols.
Is it possible to:
-create a plot regions with different hights (example: rows 1 & 2-4)
-ro center an image in the whole width (example: rows 4)
Thank's a lot.
Felix
example:
--------
Title
--------------------------------
|Text |Text |
|Text |Text |
---------------------------------
| | |
| | |
2003 Jul 11
1
Title obscured when using par(mfrow) (PR#3463)
I want to put multiple plots on a page using par(mfrow), then a single title at
the top. This should work, but doesn't:
R> par(oma=c(0,0,4,0), mfrow=c(3,4))
R> for (i in 1:12) {plot(1); title(i)}
R> ## text(10,10, ".")
R> par(mfrow=c(1,1), oma=c(0,0,1,0))
R> title("Main Title")
The main title does not appear. However, uncommenting the third line
2007 Apr 19
2
Using "mean" if two values are identical
Hello,
I have got a question.
I've got a matrix (mail end) with the colnames x, y, z. In this matrix
are different measurements. x and y are risign coordinates.
My question. Always, if the "x" AND "y" coordinates are the same, I want to
get the mean of their z values.
e.q. "
x" AND "y" in line1 and line8 are identical:
29 4.5 --> mean of
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?
2006 May 12
4
Title of page with multiple plots
I want to place four plots on a page, and I would like to have all four
plots share a common title. I have tried the following code, but the
title is centered over the fourth graph and not centered across all four
plots. Does anyone have any suggestions?
R 2.1.1
windows xp
oldpar<-par(mfcol =c(1,4),ask=TRUE)
plot(p,varp)
plot(p,SEp)
plot(p,CVp)
plot(p,ppval)
title(paste("P and 95%CI
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
2010 Feb 04
4
xyplot 3 panels 3 different Y variables
Often, when exploring a dataset, I'd like to plot several very different Y variables against the same X variable, in panels stacked one over the other. Is there an easy way to do this?
I'd like to achieve an elegant look similar to the look achieved by lattice in conditioned plots--for instance no space between panels. But unlike in straightforward conditioned plot, each panel may be on a
2000 Feb 02
1
Outer margin (oma) settings for pairs()
I propose the following small changes to pairs.default.
The point is to allow control of the outer margin settings,
so that there is for example room for legends.
[Note also the issue re the setting of par()$usr on exit]
----------------------------------------------------------------
(1) Replace
function (x, labels, panel = points, main = NULL, font.main =
par("font.main"),
2008 Aug 21
3
Boxplot 5% and 95% quantile instead of 25% and 75%
Hi,
I'm new to the whole R-thing as a replacement for Matlab, not disappointed sofar ;)
I found out how to make nice looking boxplots, but i also would like the make a boxplot with 5% and 95% instead of the standard 25 and 75% quantiles.
My csv input looks something like:
LOCATION FILTER NR DATE VALUE MONTH
Peelhorst01 1 14-Jan-94 23.07 1
Peelhorst01 1 28-Jan-94 23.68 1
Peelhorst01 1
2004 Aug 02
4
How to add a common title (or xlab, ylab) for multi-plots in the same window?
Dear R people,
I am using par(mfrow=c()) to plot multi-figures in the same window. And I like
to put a common title (and xlab, ylab) for all of plots. I have already left
some margin by resetting omi values in par() and hided all (xlab, ylab) for
each sub-plot. Could anyone tell me how to do that?
Thanks a lot,
Frank
2004 Dec 13
1
Re: Help : generating correlation matrix with a particular
************************************************************
Important: We would draw your attention to the notices at
the bottom of this e-mail, particularly before opening and
reviewing any file attachment(s).
************************************************************
Here is some code we have used.
a<-array(c(1,.9,.7,.9,1,.3,.7,.3,1),dim=c(3,3))
a
s<-eigen(a)$vectors
2007 Jul 13
2
nearest correlation to polychoric
Dear all,
Has someone implemented in R (or any other language)
Knol DL, ten Berge JMF. Least-squares approximation of an improper correlation matrix by a proper one. Psychometrika, 1989, 54, 53-61.
or any other similar algorithm?
Best regards
Jens Oehlschl?gel
Background:
I want to factanal() matrices of polychoric correlations which have negative eigenvalue. I coded
Highham 2002
2004 Apr 14
4
binary numbers
Hi,
Is there a function in R that lets one represent an integer in binary
format for a given number of bits? So an example would be....
> binary.function(num=5, num.of.bits=8)
> "00000101"
Or, is this something I have to write myself?
Any help would be appreciated.
Cheers,
Sam.
2013 Mar 26
6
How do I show real values on a log10 histogram
Hi,
I have a histogram with values logged to the base 10
hist(log10(x),breaks=60)
How do I show the log values on the x-axis and a second x-axis showing the
real values?
Thanks
--
Shane
[[alternative HTML version deleted]]
2004 Jun 03
3
Problem with mgcv PACKAGES file format?
Hello All,
I'm getting this error (Version: 1.9.0-1 on a debian system)
> update.packages("mgcv")
trying URL `ftp://mirror.aarnet.edu.au/pub/cran/src/contrib/PACKAGES'
ftp data connection made, file length 169516 bytes
opened URL
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... .......... ..........
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
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))
2008 Sep 18
1
PNG file don't run on mac's?
Een ingesloten tekst met niet-gespecificeerde tekenset is gescrubt ...
Naam: niet beschikbaar
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080918/ed87aa31/attachment.pl>
2009 Mar 17
1
Need a little help setting the upper median using "layout"...
The code I'm using is shown below.
I would like to have a larger median at the top of the plot so that I can show the entirity of "title_text".
Several times I tried messing with "par(mar", but that seemed to make matters worse.
By any chance can anyone provide any insight as to the best way to increase the top/upper/northern margin, so the entirity of the title is