similar to: AW: plot.ts

Displaying 20 results from an estimated 10000 matches similar to: "AW: plot.ts"

2007 Dec 05
1
Working with "ts" objects
I am relatively new to R and object oriented programming. I have relied on SAS for most of my data analysis. I teach an introductory undergraduate forecasting course using the Diebold text and I am considering using R in addition to SAS and Eviews in the course. I work primarily with univariate or multivariate time series data. I am having a great deal of difficulty understanding and working with
2010 Jun 17
2
Multiple plots in a single page and stripplot()
I want to make a 2x2 plot on a single page, using stripplot() and boxplot(). I tried the following two alternatives with mfrow() and layout(), but none of them worked. library(lattice) par(mfrow=c(2,2)) boxplot(X1 ~ Y, data=tst1, horizontal=T, las=1) boxplot(X2 ~ Y, data=tst1, horizontal=T, las=1) stripplot(Y ~ X1, data=tst1) stripplot(Y ~ X2, data=tst1) par(mfrow=c(1,1)) nf <-
2005 Mar 05
1
Problem with plotting size/location on variation of star/segment plot
Dear R gurus, I'm running into a problem with some modified segment plots I've coded using stars(). What I am trying to do is superimpose two series of data along with radial axes markers in a 2x2 graphics frame. This is working fine now, except for the hitch: my plots overfill the frame and are not centered within it (on my runs they always end up looking like they've been budged
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]]
2003 Apr 17
2
BATCH and tcltk
Hi R-hackers I try to write a batch (in Windows, i have to use!) with Rcmd BATCH D:\Test.R D:\Test.Rout and Rterm.exe --no-restore --no-save < D:\Test.R > D:\Test.Rout. In my file Test.R are any tk-codelines (like: Window1 <- tktoplevel(); ... tkbutton...). It works not interactifly, what is written in Rcmd BATCH --help. Exist there a way to do it all the same? Please help...
2012 Jul 30
1
problem plotting in a grid
Hi all, I'm trying to generate a grid of four plots. The first 2 appear just fine, but the final 2 will not appear in the grid, instead overwriting the first two. Any ideas on how to get them all in the same window would be greatly appreciated. Cheers, Jonathan library(fields) par(mfrow=c(2,2)) #2x2 plot windows plot(c(2,4),c(2,2)) # works fine plot(c(2,4),c(2,2)) # works fine
2005 Jan 31
2
changing the time base in a ts
I'm probably apporaching this all wrong to start but.... Suppose I have a monthly time series and I want to compute the mean of months 6,7, and 8. I want to plot the original time series and the seasonal time series, one above the other. When I do that as below the time series don't line up for reasons that are obvious. How can I change the base of the seasonal time series so I can make
2000 Apr 28
1
graphics: par(mfg=c(i,j,r,c)) (PR#529)
Full_Name: Craig A. McKinstry Version: 1.0.0 OS: WinNT4.0 and Win98 Submission from: (NULL) (192.101.100.130) When creating a multi-panel graphic, the command par(mfg=c(i,j,r,c)) is supposed to allow the user free movement between graphics panels to develop each panel separately. This works for the first invocation of par(mfg=c()) and for the first panel panel specified, but not for subsequent
2008 Jul 02
0
Combining playwith with par(mfrow... ) i.e., multiple plots.
Hi, I have the following problem: library(playwith) x<-ts(rnorm(100)) y<-ts(cumsum(x)) playwith({ par(mfrow=c(2,1)) plot(x) plot(y)}) I can't make playwith identify (using the button top left) datapoints on multiple graph plots (eg. par(mfrow=c(2,2) for a 2 x 2 frame of plots). Is it possible any other way? Many thanks in advance, Costas P Think
2008 Oct 06
2
Stacked area chart and legends
I have found lots of good advice on this forum about stacked area charts but I?ve run into problems with the 2 recommended options: stackploy in plotrix or qplot in ggplot2. I have a many page report that will be in a 2x2 page format ?par(mfrow=c(2,2))?? and need one of the page components to be a stacked chart. I?d prefer to use stackpoly, if possible, but I?m stuck on how to do the legend in
2011 Jul 19
5
multiple plots in single frame: 2 upper, 1 lower
Hi, par(mfrow = c(2,2)) will create a 2x2 window that I can use to plot 4 diferent figures in: [plot1 plot2] [plot3 plot4] But how can do 3 so that the bottom spans the width of the upper two: [plot1 plot1] [p l o t 3] Is this possible in R? -- View this message in context: http://r.789695.n4.nabble.com/multiple-plots-in-single-frame-2-upper-1-lower-tp3679574p3679574.html Sent from the R
2017 Aug 02
0
switch of cex adjustment with mfrow?
On 02/08/2017 8:29 AM, Jannis via R-help wrote: > 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
2003 Sep 14
1
title for plot contain 4 subplots
Hi, I'm plotting 4 graphs on one page (2x2 matrix) but I cant seem to get the title for the whole page right. I'm doing: op <- par(mfrow = c(2,2), pty="s") hist(var$V2, breaks="FD",main="Euclidean Metric", xlab="Sum of 3NN ... hist(var$V2, breaks="FD",main="Manhattan Metric", xlab="Sum of 3NN ... hist(var$V2,
2017 Aug 03
1
switch of cex adjustment with mfrow?
> use > > par(mfrow=c(2,2), cex = 1) This does work as written. But when I first checked single-call setting, an mfrow change to cex in the same call superseded cex=1; hence my suggestion to use separate calls to par(). Further checking confirms that the result of a call to par is dependent on argument specification order in the call: par(mfrow=c(2,2), cex = 1) par("cex") #
2010 Jan 29
1
How to draw a border for multiple graphs in one page
Hi, I am struggling to create a 2 by 2 multiple graphs in one page. I used par(mfrow=c(2,2)) to divide the screen into 4. In each screen I draw a pie chart (They are all same). For example, my data is like this Concentration value A1 69 A2 8 G1 51 G2 1
2006 Mar 31
2
lattice: problem with cex argument.
Hi, I'm trying to plot a "bubbles" plot wich I do with the cex argument. The problem is that it looks like it fails the conditioning and reuses the first 100 elements of the cex vector. See the code x <- rep(rep(1:10,10),2) y <- rep(rep(c(1:10),rep(10,10)),2) z <- rep(1:2,c(100,100)) w <- rpois(200,l=1) xyplot(y~x|z, cex=w) the plot has the same pattern in both sides
2010 Jan 29
1
How to draw a border for multiple graphs in one pager
Hi, I am struggling to create a 2 by 2 multiple graphs in one page. I used par(mfrow=c(2,2)) to divide the screen into 4. In each screen I draw a pie chart (They are all same). For example, my data is like this Concentration value A1 69 A2 8 G1 51 G2 1
2007 Apr 27
1
Write text in the
Hey Felix, So basically what you want is a figure containing a block of four plots, with a main title for the figure? If that's the case then something like this should work: # BEGIN CODE # par(oma=c(0,0,1,0), mfrow=c(2,2)) for(i in 1:4){ plot(NA,xlim=range(0,10),ylim=range(-5,5)) title(paste("Plot ",i,sep="")) } par(mfrow=c(1,1), oma=c(0,0,1,0)) mtext("Main
2012 Sep 02
2
Impact of cex changing as a function of mfrow
R 2.15.1 OS X (MLion) Colleagues, I am aware that changes in mfrow / mfcol in par() affect cex (from help: In a layout with exactly two rows and columns the base value of ?"cex"? is reduced by a factor of 0.83: if there are three or more of either rows or columns, the reduction factor is 0.66). I generate a multipage PDF in which mfrow varies such that cex is impacted. This affect
2004 Mar 03
1
Bug in plot.lm (PR#6640)
Dear all, I noticed the following behaviour of plot.lm: > fm1 <- lm(time~dist, data=hills, weights=c(0,0,rep(1,33))) > par(mfrow=c(2,2)) > plot(fm1) Warning messages: 1: longer object length is not a multiple of shorter object length in: res/(sd * (1 - hat)) 2: longer object length is not a multiple of shorter object length in: (res/(sd * (1 - hat)))^2 * hat which seems to be