similar to: controlling figure dimension/location

Displaying 20 results from an estimated 1000 matches similar to: "controlling figure dimension/location"

2006 Sep 22
4
Creating Movies with R
Dear All, I'd like to know if it is possible to create animations with R. To be specific, I attach a code I am using for my research to plot some analytical results in 3D using the lattice package. It is not necessary to go through the code. Simply, it plots some 3D density profiles at two different times selected by the user. I wonder if it is possible to use the data generated for different
2014 Nov 28
1
Feature request: mixing `...` (three dots) with other formal arguments in S4 methods
Well, the benefit lies in the ability to pass along arguments via `...` to more than one recipient that use *identical argument names* and/or when these recipients are not necessarily located on the same calling stack layer. I'm *not* after a *general* change in the way arguments are dispatched/functions are called as I'm actually a big friend of keepings things quite explicit (thus
2006 Oct 03
1
do.call with Vectorial Argument
Dear All, I am trying to use the do.call command to avoid tedious loops in R when I need to call repetitively a function. I am experiencing a problem when the arguments of a function are given with a vector (I need to express then this way to be able later on to integrate them numerically with the adapt package). Consider the small script: remove(list=ls()) #library(adapt) # first a list of the
2014 Nov 27
2
Feature request: mixing `...` (three dots) with other formal arguments in S4 methods
Hi Gabriel, and thanks for answering. I'm basically just trying to find a way to use the power of `...` in more complex scenarios and I'm well aware that this might not be the best approach ;-) Regarding your actual question: "Are you suggesting methods be dispatched based on the *contents* of ... [...]?" Yes, I guess currently I kind of do - but not on the argument *names*
2002 Jan 03
3
extracting entire mail archive
I'd like to search the r-help mail archives. However, it takes a long time to load the html archive for my searches. Is there a simple way to download the entire http://cran.r-project.org/doc/mail-archives/r-help/ archives in text format so I can execute simple grep searches? thanks, Mike -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list
2010 Feb 12
2
Multiple figures margin problem
Hello All, I am trying to make a figure with 3x2 plots in it. Let us name the plots as such: 1 2 3 4 5 6 I begin my script with: par(mfcol=c(3,2)) par(oma=c(0,0,0,0)) --> This is for a postscript figure so I really don't need the outer margins. d=5 par(mar=c(d,d,d,d)) --> This applies to all the 6 plots. Now if d=0, plots 1-2,3-4 and 5-6 will have no gap between them and
2011 Apr 12
2
font and size times New Roman
Hello I wonder how to change the font of chart to Times New Roman and size 9. plot(c(0,100,20),c(0,600,50), xlab= 'Idade(meses)', ylab="Peso(kg)", type = "n", axes=F) axis(1, pos=0, at=seq(0,100,20)) axis(2, pos=0, at=seq(0,600,100)) t<- seq(0,100,1) TA=543.56*(1-0.8976*exp(-0.0522*t)) NI=498.97*(1-0.9259*exp(-0.0494*t)) RC=514.57*(1-0.9112*exp(-0.0499*t))
2006 Jul 27
2
Vector extracted from a matrix. How can I specify dimensions in as.matrix?
Transpose vector extracted from a matrix Hello, I am doing a recursive analysis that uses every line (vector) of a matrix in a loop. In the model, I need to transpose those vectors that are extracted from a matrix. Using simple vectors (no matrix involved) the transpose function works fine: simplevector <-matrix(1:3,3,1) tsimplevector <-t(simplevector) #transposed dim(simplevector)
2007 Jan 11
1
Error in plot.new() : Figure margins too large
Hello, was could be the reason for such an error message??? I'd like to create a window with 10x6 barplot and save it as pdf. I tried: pdf("histogram.pdf",width=7, height=7) windows(cols, rows) par(mfcol = c(rows,cols)) sapply(mat, calcHist) dev.off() Within the method of sapply, I call barplot What is wrong??? Antje
2009 Jun 18
1
"Normal" plot and xyplot side by side in one figure?
Hi list, I want to place a plot (eg "plot(1:10)") and a xyplot side by side in one figure. The two columns should have different widths. If I'm not missing something, this rules out the standard way: par(mfcol=n). I tried layout(), but it doesn't seem to like it when grid scribbles into its views (the plot works but the view for the xyplot is left empty). I would
2008 May 26
1
Joining Histograms Into a Figure
Hi, I have two histograms created separately using the following code. It creates two separate figures. dat <- read.table(file="GDS1096.modelout", head = FALSE ) __BEGIN__ dat <- read.table(file="GDS1096.modelout", head = FALSE ) hist(dat$V2, main="AIC Freq", xlab = "\# Component", breaks = 36, xlim = c(0,max(dat$V2)), col = "dark red",
2005 Mar 28
2
Generating list of vector coordinates
Hi. Can anyone suggest a simple way to obtain in R a list of vector coordinates of the following form? The code below is Mathematica. In[5]:= Flatten[Table[{i,j,k},{i,3},{j,4},{k,5}], 2] Out[5]= {{1,1,1},{1,1,2},{1,1,3},{1,1,4},{1,1,5},{1,2,1},{1,2,2},{1,2,3},{1 ,2,4},{1,2, 5},{1,3,1},{1,3,2},{1,3,3},{1,3,4},{1,3,5},{1,4,1},{1,4,2},{1,4,3}, {1,4,
2002 Jun 04
1
how to draw two histograms in one figure
How do you draw two histograms in one figure? Two separate uses of the "hist" function always produce two separate figures... Thanks, Roman -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the
1998 Mar 16
1
R-beta: multiplot figure problems
I wanted to have a figure consisting of 2 square plots, one above the other (2 rows, 1 column). I am using 61.1 on Linux. I did: > x1<-rnorm(100) > y1<-rnorm(100) > par(mfcol=c(2,1)) > plot(x1,y1,pty="s",mfg=c(1,1,2,1)) > plot(x1,y1,pty="s",mfg=c(2,1,2,1)) The resulting figure consists of two plots, one above each other, BUT they are extremely squished in
2005 May 21
2
Plotting functions on the same figure
Hi there, i am a newbie :P My simple question is: Is there command which is equal of the m*tl*abs `hold on` command. In other words i want to plot 5 functions in the same figure. Thanx, volkan
2005 Dec 09
0
Multiple Figure environment through Java
I am trying to create a .jpg file with multiple graphs on it. I am creating this file through a java servlet which connects to R using RServe. In the code below, col is an int array which has a list of the col numbers of the data file whose data i have to use for plotting. c=new Rconnection();
1999 Nov 24
0
problem with multiple figure postscript file
Hello all! I'm a newcomer to R, so please bear with me. My problem is the following: I'm trying to use R to do some geostatistics stuff (mostly kriging), and am having trouble printing a multiple figure. When I create a single figure (one image/contour command), it works fine. The instant I try to create a multiple figure file, I start getting postscript errors. I'm using the
2007 Nov 29
1
configure the margin of the plot
I'm trying to put two plots side-by-side in two panels. Since the y-axis of the two plots is the same, I want to leave out the y-axis of the second plot. And the two plots look quite separate from each other. Is there any way to have them stay closer to each other? I've tried to adjust mar option of par but it has a global effect as I see the left margin of the first plot will be
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')
2002 Jan 08
1
dimensions of stacked barplot
I'm plotting stacked barplots using: > barplot(tmp, beside=F) This gives me several stacked bars. Each stack is divided into several segments. I'd like to add a dotted line from the edge of one segment to the same edge on the next stacked bar. This might help to see which stack shrinks or expands from one stacked bar to the next. I'm thinking that I could overlay dotted lines