Displaying 20 results from an estimated 4000 matches similar to: "multi-panel figure: overall title for each row"
2012 Mar 15
3
single, double or no quotes in expression
Dear all,
I am confused about how to create an expression. I use a package (rsbml)
which uses expressions and seems to make a difference if there is a quote
around the expression or not.
For example, package works with expressions such as
> expression(A + B)
but not with
> expression("A + B")
I now have a set of math expressions represented as strings, something like
this:
>
2012 Aug 01
3
splitting a vector
Hello,
I have a vector with positive integer numbers, e.g.
> numbers <- c(1,2,1,2,3,4,5)
and want to split the vector whenever an element in the vector is smaller or
equal to its predecessor.
Hence I want to obtain two vectors: c(1,2) and c(1,2,3,4,5).
I tried with which(), but it is not so elegant:
> numbers[1:(which(numbers<=numbers[1])[2]-1)]
>
2008 Jun 12
4
overall title
I have a 2x2 plot set up using: par(mfrow=c(2,2))
I'd like to put an overall title on the page, but I cannot figure out how. Any ideas?
[[alternative HTML version deleted]]
2012 Jun 20
2
Figure title
Hi,
I created several figures and their titles should appear like this:
Figure 1: Monte Carlo results for alternative estimators of structural
parameters (N = 100, T = 5)
Because N and T change across figures, my code includes the following lines:
N.set <- 100
T.set <- 5
mtext(“Figure 1: Monte Carlo results for alternative estimators of
structural
2007 May 03
2
Single Title for the Multiple plot page
Dear List,
In R we can plot multiple graphs in same page using
par(mfrow = c(*,*)). In each plot we can set title
using main and sub commands.
However, is there any way that we can place an
universal title above the set of plots placed in the
same page (not individual plot titles, all i need is a
title of the whole graph page) as well as sib-titles?
Do I need any package to do so?
Thank you
2002 Sep 23
4
Overall Title in par(mfrow)
Hi,
Say I did something like:
par(mfrow = c(1, 2))
plot(1:10)
plot(1:10)
and I'd like to have an overall title, i.e. a title that would appear,
centered, on the top of both plots, rather than the top of the last plot.
I tried:
title("FOO", outer = T)
but it doesn't appear right. Half of the FOO is outside the figure region
and can't be seen...
Is there another
2010 Apr 22
1
Multicolor main title in a plot or mtext
Dear R-users, the problem I'm facing today is to write a
multicolor main title in a plot.
I would like to have 3/4 colors to help people in the
audience to visually realize what is what in a 4x2 plot array
On top of each plot I would like to have two lines.
The 1st line will indicate what is plotted
The 2nd line will indicate a a reference
Graphically speaking I would like a result similar
2005 Aug 16
1
Overall Legend
Hello. I am using R version 2.1.1 on Windows 2000.
I am using a par(mfrow=c(2,2)) statement to produce 4 plots on one screen. I want a single horizontal legend to appear at the top of the four plots. My code is something like this:
par(mfrow=c(2,2))
plot(x,y1)
lines(x,y2)
lines(x,y3)
plot(x,z1)
lines(x,z2)
lines(x,z3)
plot(x,t1)
lines(x,t2)
lines(x,t3)
plot(x,w1)
lines(x,w2)
lines(x,w3)
2011 Nov 24
1
Horizontal Y axis title above the y axis
Dear R-help team
I have tried hard to turn my Y axis 90 degrees, so that it is written horizontally, and placing it above the Y axis, but I did not succeed.
I have tried to adapt the following functions:
- plot()
- title()
- mtext()
And some more that did not prove to be useful (e.g. text() etc).
The closest I got to my aim was with mtext():
mtext("Yield
2001 Feb 22
1
cex= and plot(), title(), mtext()
using R 1.2.1 under LinuxPPC, using the default X11 graphics device, i
can't get the cex= argument for plot() and title() to have any effect.
works for text(), though. the text size for plot() and title() _is_
correct if par(cex=size) is called first. oddly, mtext() seems to pay
attention to cex=, but to ignore the value set by par().
for example,
> plot(1:5, 1:5,
2009 Oct 12
3
help with the use of mtext to create main title over multiple plots
I'm trying to use mtext to create a main title over multiple plots. Below is
a simple self-contained example and my sessionInfo (I should note I've also
tried this with R-2.8.1 with the same results). When I execute the code
chunk below, I get the plots, but no title. I've tried this using the screen
driver, pdf, and postscript. I've used different sizes of paper. I suspect I
am
2000 Oct 03
1
captions for than one figure
Hi,
I would like to have four plots plotted in the one figure and under each plot
the caption (a) ... (d). Using mtext I can get so far:
> plot(1:10, exp(1:10), log = "y", xlab = "xlab")
> mtext("(a)",side=1,line=4.5)
> plot(1:10, exp(1:10), log = "y", xlab = "xlab")
> mtext("(b)",side=1,line=4.5)
> plot(1:10,
2009 Sep 28
1
plot error -- figure margins too large
Hi,
I am trying to plot my dataset, consisting of one column with numeric values and one column with group IDs.
The set is similar to the following df.
df <- NULL
for ( i in 1:20)
{
tmp1 <- runif(1000,0,5)
tmp2 <- cbind(tmp1,i)
df <- rbind(df,tmp2)
}
Now I would like to plot the numeric column, stratified by the group IDs, in a single figure.
First, I partitioned the frame
2005 May 12
2
Batch mode problem: figure margins too large (code corrected for word wrap)
First of all, I apologize for the triple post, but I did not see that the
word wrap on the r-help list site would render my code unusable. So here it
is again. Hoping that this time it will work if you cut and paste it in
your Rgui.
I have a program that works well in Rgui but that does not work in a batch
file (Execution halted).
Here's the code (it will work on your R, but you need
2004 Apr 19
1
using subscripts in a plot title with 2 lines
Hi,
I'm making a plot in which the title takes up two lines. The title
contains a subscript but when I look at the plot it does'nt seem tocome
out properly. The code I'm using is:
xtxt = expression(paste('Observed -log( ', IC[50], ' )'))
ytxt = expression(paste('Predicted -log( ', IC[50], ' )'))
mtxt = expression(paste('Plot of Observed
2012 Apr 24
2
Positioning main title
Hello,
I have a barplot where each row has quite long texts and I have used "par"
to make some room in the left:
par(mar=c(0, 17, 3, 0), oma=c(0, 0, 0, 0))
barplot2(prueba, main = l, col=colores, horiz=TRUE,las=1, cex.names=.7)
My problem is that main text appears justified to the plot. I want to put it
in the middle of the image, and find a way to sort it out with mtex
par(mar=c(0,
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
2005 Oct 10
4
plot - no main title and missing abscissa value
Hi all.
I have defined a plot thus:
par(mar=c(5,5,4,5),las=1, xpd=NA)
plot(Day, Ym1Imp, ylim=c(0,100), type="b", bty="l", main="Ym1
Expression", cex=1.3, xaxt="n", yaxt="n") #plot implant data
axis(side=1, at=c(0,1,3,5,7,10,14,21), labels=c(0,1,3,5,7,10,14,21)) #
label x axis
mtext("Day", side =1, at=10, line=3, cex=1.2) # title x
2011 Nov 10
3
Title for a group of plots?
I can get multiple plots on a page like:
op <- par(mfcol = c(3, 1))
What I was wondering is if there is a way to have a title for the whole
page? I can specify the title for each individual plot like:
plot(xxx, main=".")
But I would like a 'title' for the group of plots. Is this possible?
Thank you.
Kevin
[[alternative HTML version deleted]]
2007 Jun 19
1
: create a PDF file (text (print list) and grafics)
Dear helpers,
I need help to create a PDF file like the example
-----------------------------------
| Title |
-----------------------------------
| |
| Text (print a list) |
| |
-----------------------------------
| | |
| | |
| image | image |
| | |
| | |
-----------------------------------