Displaying 14 results from an estimated 14 matches for "series2".
Did you mean:
series
2006 Oct 15
2
overlapping intervals
Hello everybody,
I have two series of intervals, and I'd like to output the shared
regions.
For example:
series1<-cbind(Start=c(10,21,40,300),End=c(20,26,70,350))
series2<-cbind(Start=c(25,60,210,500),End=c(40,100,400,1000))
> series1
Start End
[1,] 10 20
[2,] 21 26
[3,] 40 70
[4,] 300 350
> series2
Start End
[1,] 25 40
[2,] 60 100
[3,] 210 400
[4,] 500 1000
I'd like to have something like this as result:
&g...
2011 Jul 07
0
Seasonal correlations
...the data that is within 2008-01-01 to 2008-03-31. In output 2, there are only four rows of outputs, one for each quarter.
In output 3, the function would subset each quarter of each year and then use a standard correlation.
The input
> head(ReturnsAll)[,1:4]
Dates Series1 Series2 Series3
1 2008-01-03 -0.002 -0.002 -0.002
2 2008-01-04 -0.008 -0.009 -0.009
3 2008-01-07 -0.025 -0.024 -0.024
4 2008-01-08 0.012 0.012 0.012
5 2008-01-09 -0.012 -0.014 -0.015
6 2008-01-10 -0.023 -0.022 -0.021
> tail(ReturnsAll)[,1:4]
Dates Series1 Series2 Series3
850...
2012 Feb 28
2
ts.plot and x axes customization
Dear List,
I would be pleased if someone can help me with the following issue:
I'm about to plot two time series in one plot via ts.plot which looks like:
ts.plot(series1, series2, main=main, xlab=xlab, ylab=ylab, col=c("green",
"red", "blue"), lwd=2)
The problem is, that R automatically sets the x axes labels in
5-year-intervalls. Every 5 years there's one tick and one label with the
respective year. Now I would like to...
2008 May 03
2
Stacked bar plot anomaly When column contains a negative and a positive value
Hello users,
I've noticed a problem when creating a stacked column plot when a column
contains a negative and a positive value. e.g.
series1<-c(-1,-2, 3, 4, 5)
series2<-c( 5, -4,-3,-2, 1)
data<-rbind(series1,series2)
barplot(as.matrix(data), beside=FALSE)
In these cases (i.e. first, third and fifth columns) the plotting is not
handled correctly. Compare this output with that of:
barplot(as.matrix(data), beside=TRUE)
Shouldn't the plots look the s...
2010 Jul 28
2
Axes=F and plotting dual y axes
...bit of trouble with plotting. Seems that
axes=F is not "working". Whenever I plot (either a dataframe or xts/zoo
series) and I set axes=F along with xlab/ylab="" I still get the default
axes printed in my chart. Consider this:
#Create some sample data, both 50 units of blah
series2 = c(1:50)
series1 = rep(25:74)
testdf1 = as.data.frame(series1)
testdf1$series2 = series2
As a note, I converted my original xts/zoo dataset into a dataframe
thinking it could be weirdness on the part of that. I just did this here
to have something reproducible since it's not feasible to pu...
2010 Jan 27
1
How to sort data.frame
Dear R heleprs
Suppose I have following data
Scenarios
combination_names
series1
series2
Sc1
MAT2 GAU1
7.26554
8.409778
Sc2
MAT2 GAU2
7.438128
8.130275
Sc3
MAT3 GAU1
8.058422
8.06457
Sc4
MAT1 GAU2
8.179855
8.022071
Sc5
MAT3 GAU2
8.184033
8.191831
Sc6
MAT3 GAU2
7.50312
8.232425
Sc7
MAT1 GAU2
7.603291
8.200993
Sc8
MAT1 GAU1
8.221755
8.380097
Sc9
MAT3 GAU2
7.904908
8.088824
Sc10...
2006 Jun 20
1
weird application of apply again
...se functions, tricks and and manipulations.
i appreciate everyone's patience. i used too splus a lot
but i've gotten rusty.
i have a matrix of say 200 rows and 600 columns.
i have a function "getprofit" that takes two series and returns a number.
getprofit<-function(series1, series2) {
do some stufff
return(somenumber)
is there a way to do something clever so that
i call the function, getprofit, on the first two columns
of the matrix ( where the first column is series1 and the second column is series2 ), then the next two columns of the matrix,
then the next two columns of...
2009 Jan 10
0
RMySQL CREATE TABLE error
Hi all-
I am stumped. The code in A. returns errors at lines 14 and 15 and fails
to load series1 and series2. However, in B., if temp1 and temp2 are
called again (which returns a "Table exists" error; see lines 14-17 in
B.) series1 and series2 load correctly. Any ideas? Also-I am open to any
suggestions to improve the code as I am a horrific programmer. Thanks
A.
1 > library(RMySQL)
2 &g...
2010 Oct 29
2
Plotting 2 Lines on the Same Chart
How do I plot two time series plots on the same chart?
Thanks,
Jason
[[alternative HTML version deleted]]
2004 Apr 29
1
accessing information in lists
...ALSE)
where rev.matrix is an n by t matrix containing n time series in columns. I'd now like to pull out only the ACF information and store it in a seperate n by 12 matrix. So far the only way I can work out to access this is
rev.acf[["series1"]][["acf"]]
rev.acf[["series2"]][["acf"]]
etc
Is there some way I can do this automatically?
Thanks
Murray
[[alternative HTML version deleted]]
2005 Oct 19
1
Plotting more than one series on the same graph
...e pdf
manuals, but I can't seem to figure out how to plot more than one
series on the same graph.
I've tried using multiple par(new=TRUE) statements such as
>plot(series1, ci.type="line", col="red", lwd=2, ci.lty=0, ci.col="red")
>par(new=TRUE)
>plot(series2, ci.type="line", col="green", lwd=2, ci.lty=0, ci.col="green")
>par(new=TRUE)
>plot(series3, ci.type="line", col="blue", lwd=2, ci.lty=0, ci.col="blue")
and this does plot the three series on one graph, but makes a mess of
the y-axi...
2006 Mar 17
1
How to change the label in plot.ts ?
Hi you guys:
I have been wondering if there is any way to change the labeling in plot.ts( ), for example , if I plot two sequences,
i always got y labels as "series1", "series2", I tried to use ylab=c((expression(mu_1)),(expression(mu_2))), but it
doesn't work.
thanks in advance for any help
best.
2004 Aug 06
2
Icecast2 and TiVo
Hey guys,
As some of you may or may not know, TiVo recently came out with an optional
software package for their Series2 TiVo units. They call it "Home Media
Option" and, among other things, it lets you play mp3s on your TiVo.
So, some clever folks figure out that if you fed your TiVo and m3u playlist
that pointed to an Internet stream, it would play that stream for you. Very
nifty.
So I decided to t...
2010 Oct 31
1
R-help Digest, Vol 92, Issue 31
...othendieck@gmail.com>
Cc: R Help Mailing List <r-help@r-project.org>
Subject: Re: [R] Plotting 2 Lines on the Same Chart
Message-ID:
<AANLkTimeMbzayaxtn3oydN2FSK6g9zRKYfX4BmN7fnZm@mail.gmail.com>
Content-Type: text/plain
Thanks. 1 more question.
When I use
Plot(series1)
lines(series2)
The graph will use the y axis scaling for series 1 so some of series 2 is
cut off. How do I control the y axis scaling?
Thanks,
Jason
On Fri, Oct 29, 2010 at 2:10 PM, Gabor Grothendieck <ggrothendieck@gmail.com
> wrote:
> On Fri, Oct 29, 2010 at 1:41 PM, Jason Kwok <jaykwok@gmail...