similar to: how to control the overall shape of a figure?

Displaying 20 results from an estimated 20000 matches similar to: "how to control the overall shape of a figure?"

2008 Sep 19
2
plot order in multi-panel figure
Hi, Does anyone know if there is a way to 'reset the plot number' on a traditional graphics device? For instance, I want to have two plots on stacked top of each other (mfrow=c(2,1)) but with underlying grid lines spanning both figures vertically. I can put the grid lines on top if I add them last: par(mfrow=c(2,1)) plot.new() plot.window(c(0,1),c(0,1)) for( i in 1:2) axis(i)
2012 Oct 23
2
multi-panel figure: overall title for each row
Dear all, I have a 3x2 plot and in addition to the title of the individual plots I would like to have an overall title for each row. I managed to get an overall title for the whole plot matrix with mtext: par(mfrow=(c(3,2)), mar=c(6.4,4.5,4.2, 1.8), oma=c(0,0,3,0)) for (i in 1:6) barplot(sample(1:10,5), main=paste("Plot #",i)) mtext("Overall Title Row 1", outer=TRUE) but I
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
2007 Feb 26
1
Automated figure production
Hello, everybody Two questions: 1) I am new to maillists, and particularly to r-help maillist. Where specifically do I go online to see my question and answers to it??? If I use the searchable archives, or archives by Robert King, I see my question but not the answers, though I know that at least one persion posted the answer to r-help. Why do not I see the answers? 2) I need to produce 104
2011 Mar 16
4
plotting multiple figures on one page
I am new to the R language. I am trying to plot multiple figures on one page through a loop, but the code just produce one graph on one page. Can someone show some light on what's wrong? Here is my code: library("quantreg") tcdata<-read.table("mydata.txt",header=TRUE) postscript("myfigure.ps") basins<-
2009 Apr 17
1
How to control distance between rows of figures in multiple plots
Dear all, I have a plot with 2 x 2 figures matrix in it. pdf("~/Desktop/myplot.pdf",width=13,height=7) par(mfrow=c(2,2)) # follow by some code Now the distance between figures of row 1 and row 2 is too wide. How can I modify? - Gundala Viswanath Jakarta - Indonesia
2012 Mar 13
1
size of graphs when using multiple figures by row
Hi all, I have a basic question concerning graphs in R. I?m using the par() function and I?m working with multiple figures by row (mfrow) but my the hight of my figures become compressed. I have 4 rows and 2 columns (because I want to plot 8 histograms (freq = FALSE ) on it. I know I can adapt my margins with for example ?oma? and ?mai? but I don?t know how to choose the size of the figure? I
2006 Oct 15
2
Compact presentation of multiple figures
Dear r-helpers, I have six panels: op(par(mfrow = c(2, 3), xaxt = 'n', yaxt = 'n', pty = 's'). Each of them has a variable main = 'i', and xlab = '', ylab = '' I would like to achieve two things: (1) a common x-axis label under panel 5, and one label to the left of panels 1 and 4 (2) minimal space between the panels. I have looked for
2009 Mar 14
1
Problem with figure size when embedding fonts
Dear Colleagues: I need to make a graphic that uses the Nimbus rather than Helvetica font family so that the font can be embedded in the encapsulated postscript file. This is to satisfy a requirement from a journal for electronic submission of figures. I do the following: postscript('lowess.eps', onefile=FALSE, pointsize=18, horizontal=FALSE, family='NimbusSan')
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)
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]]
2005 Sep 16
1
How to make two figures in one plot - package vcd
Dear all, I have a problem to make figures with two columns in package vcd. Here an example code I take from "\library\vcd\html\plot.loglm.html" What I need, I want to make two figures in one plot. How could I do that. I have tried with layout(rbind(c(1, 1, 2, 2))) but the same result, two plot. Best wishes, Muhammad Subianto library(vcd) oldpar <- par(mfrow=c(1, 2)) ## mosaic
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
2008 Feb 18
1
Plotting a legend outside the figure - units
Dear R gurus, I am trying to plot a legend in the margins of a figure. The basic idea is to have two (or more) plots on the same figure, but then to have a common legend at the bottom of the plot. The approach that I have taken is to setup the figures, then do a "dummy" plot of the legend to determine the height of the legend box (ie from the value returned by the legend() command). I
2006 Feb 16
1
how to save the picture with par(mfrow = c(1, 3), pty='s') setti ngs?
Dear list, I am trying to place 3 density functions in one Figure, 1 row by 3 columns: ------------------------------------------------------- op <- par(mfrow = c(1, 3),pty='s') pdf(file="Fig_den.pdf") barplot2(tab.in,plot.grid=TRUE,xlab="number of HGT_in",ylab="density") lines(dneg,col="red",lwd=2)
2017 Aug 02
3
switch of cex adjustment with mfrow?
Dear list members, i am trying to create multiple figures with identical layout (i.e. font sizes etc.) for a publication created with Latex. To do so (i.e. to get identical font sizes) I save all plots as a pdf with widths and heights as they would later appear in the paper (to prevent scaling etc.). My problem now is that I create several multipanel plots with par(mfrow=c(...)) which sometimes
2010 Sep 16
2
use same breaks and colors, but the displayed scale are different-image.plot()
Hi all, I want to put several figures in a one figure for easy comparison, so i need to use the same methods to plot these figures. The following is an example. I also list my method, but it does not work. #Example data x<- 1:10; y<- 1:10; z<- outer( x,y,"+");z2<- outer( x,y,"-") #Quick view them image.plot(x,y,z) #relatively larger value image.plot(x,y,z2)
2007 Sep 15
1
R-2.6.0 for Windows, semi-transparent colours and layout()
Hi, The added support for semi-transparent colours in `windows' under R-2.6.0 for Windows is much appreciated. However, I've discovered that issuing a `layout' (or `par' with arguments `mfcol'/`mfrow') call and then trying to plot several figures with semi-transparent colour on the same page results in only the first one being fully drawn. E.g. > x <-
2003 Sep 26
1
empty postscript output of figures
Hi, I have a puzzeling problem. I want to export graphics from R to TeX via postscript(). This works fine for some graphs, but for others, the eps remain empty when viewed with GSView. When such an empty eps is imported to TeX, the figure appears upside down and very small, irrespective of TeX width and height commands. If I transform the eps to pdf, the graphic shows up, but turned aqround 90°.
2007 Jun 01
2
tapply histogram
Dear members, I would like to pass the histogram settings to each subset of the dataframe, and generate a multiple figures graph. First, can anyone tell me how to generate a multiple figures environment? I am trying mfrow=c(2,4) and nothing appears. Secondly, I want to pass the following function in tapply() hist(x, freq=FALSE) lines(density(x), col="red") rug(x) how can I manage