Displaying 20 results from an estimated 5000 matches similar to: "plotting multiple series in one plot"
2004 Nov 17
8
referencing values of strings
Say you have a vector named x and a function which returns the character
string "x" . How would I take "x" as an input and return the vector x?
DISCLAIMER: This e-mail message and any attachments are inte...{{dropped}}
2005 May 06
1
data frame output in loops
I know this is very basic--I'm wondering if there is a way to write data frames as outputs from a loop.
In other words, take this simple example:
> a <- data.frame(x = c(1,2,3,4), y = c(1,2,1,2))
Given a, how would you write a loop that creates two data frames, x and y, where the first column is a column of a and the second column is two times the first column, or:
> x
x.1
2007 Nov 10
1
Need something like multiple plots in ts.plot but then change x values
Hi:
I need to plot two data sets and then I need to change labels of xaxis. I
can manage to achieve something like it with this:
x<-data.frame(a=c(1,2,3,4,5),b=c(2,4,6,8,10))
y<-data.frame(a=c(3,4,5),b=c(1.5,2,2.5))
xts <- ts(x$b,start=x$a[1])
yts <- ts(y$b,start=y$a[1])
ts.plot(xts,yts,col=c("red","blue"))
But ts.plot does not allow to change x labels. Besides,
2005 Jul 24
2
Multiple series plot with different 'type' argument
Hi:
I need to plot two time series in the same plot and
they cover the same time range and have the same
frequency. With
RSiteSearch("multiple series plot")
i found this post by Gabor Grothendieck:
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/42281.html
Exactly what i need except for one detail. I want one series
to be made of points and the other by a line. When I simply
try:
xts
2008 May 22
1
Plotting 3 Time Series
Hi, I am fairly new to R so this may be easy for some.
I have one column that is the Type="A, B' T"
and I have another column that lists Price='894, 895, 896'
I wanted to plot three different series based upon the Type...If B than
xts..If T yts...
How exactly do I do this?
Thanks in advance
--
View this message in context:
2010 Jan 18
5
errors appears in my time Series regression fomula
Dear all,
I found really difficult with the time series questions, please help me with this monthly airline series!
I have run the following r code, and there is an error appeared at the end. The data files was enclosed in the email.
I'm sorry the errors message appeared in chinese, but it says "plot.xy(xy.coords(x, y), type = type, ...) :
errors in argument has more than 3
2011 Jul 11
1
Spectral Coherence
Greetings,
I would like to estimate a spectral coherence between
two timeseries. The stats : spectrum() returns a coh matrix
which estimates coherence (squared).
A basic test which from which i expect near-zero coherence:
x = rnorm(500)
y = rnorm(500)
xts = ts(x, frequency = 10)
yts = ts(y, frequency = 10)
gxy = spectrum( cbind( xts, yts ) )
plot( gxy $ freq, gxy $
2007 Apr 25
2
assigning two conditions to grep()
Hi,
i have a problem in assigning 2 conditions to grep() ,
my data look like this:
DA 24 N7 Rad= 3.4 20 Sac= 0.93 Acc= 4.76
DA 24 N7 Rad= 3.4 14 Sac= 0.65 Acc= 3.33
DA 24 N7 Rad= 3.4 3 Sac= 0.14 Acc= 0.71
DA 24 N7 Rad= 3.4 11 Sac= 0.51 Acc= 2.62
DG 23 N7 Rad= 3.4 8 Sac= 0.37 Acc= 1.91
DG 23 N7 Rad= 3.4 5 Sac= 0.23 Acc= 1.19
DG 23 N7 Rad= 3.4 0 Sac= 0.00 Acc= 0.00
DG 23 N7 Rad= 3.4 3 Sac=
2005 May 17
4
Combinations with two part column
Dear R-helpers,
I am a beginner using R.
This is the first question in this list.
My question, Is there possible to make combinations with two part column?
If I have a number 1,2,3,4,5,6,7,8. I need the result something like below:
1,2,3,4,5 6,7,8
1,2,3,4,7 5,6,8
2,3,4,5,6 1,7,8
1,2,3,6,7 4,5,8
1,2,3,4,8 5,6,7
3,4,6,7,8 1,2,5
....
I would be very happy if anyone could
1999 May 11
1
another multivariate ts bug
I think this is another one of the same kind of bugs in ts:
Version 0.64.1 (May 8, 1999)
...
> z <- ts(matrix(1:20,10,2), start=c(1969,1), frequency=12)
> (z > 5) | (z < 2)
Error: invalid time series parameters specified
>
Paul
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read
2003 Jul 16
1
Tobit analysis
Having read previous correspondance on this topic, am I right in using a
gaussian distribution for a tobit model, one article suggests a normal distribution?
Also, I want to censure at the upper bound, so, using the survival5 package I use:
survreg(Surv(y,y<c,type="right")~x) for a censored regression.
Could anybody who's had experience of this, confirm whether I'm in the
2013 Jan 24
1
Copy on assignment and .Internal(inspect())
Hi,
I would like to know if it's ok to use .Internal(inspect(x)) in order
to detect vector copying.
Take for example the following silly code:
f <- function() {
x = seq(10)
print(.Internal(inspect(x)))
for(i in seq(10)) {
x[i] <- x[i] + 1
print(.Internal(inspect(x)))
}
}
The output of f() was:
@bd7acf0 13 INTSXP g0c4 [NAM(1)] (len=10, tl=0) 1,2,3,4,5,...
[1] 1 2
2008 Feb 21
1
Save a group of matrix
Hello, I'm creating a loop to work with vegan, to get a species abundance curve. Here I send the script I've created and also an excel file to prove what it can do.
Well, I have a database with 20 years, and each year we have sampled 19 stratum, and in each estratum we have carry out some sumpling. Then, with the script that I've sent I've got to calculate the species abundance
1999 Nov 10
1
plot() bugs (PR#317)
Full_Name: Bill Simpson
Version: 65.1
OS: Linux Redhat 6.1
Submission from: (NULL) (193.62.250.209)
Try this:
#default plot symbols and lettering are too small, need to scale up
par(cex=2,mex=.7)
par(mar=c(5,5,1,1))
spdiff<-c(1,2,3,4,5)
dpdet<-c(1,2,3,4,5)/10
dpsp<-c(2,3,4,5,6)/10
dpdir<-c(2,4,6,8,10)/10
plot(spdiff,dpdet,pch=15,ylim=c(0,max(dpdet,dpsp,dpdir)),xlab="Speed
2012 Nov 23
0
[LLVMdev] [cfe-dev] costing optimisations
On 23/11/2012, at 5:46 PM, Sean Silva wrote:
> Adding LLVMdev, since this is intimately related to the optimization passes.
>
>> I think this is roughly because some function level optimisations are
>> worse than O(N) in the number of instructions.
>
> Please profile this and mail llvmdev regarding passes with
> significantly superlinear behavior (e.g. O(n^2)). My
2005 Feb 09
2
Histogram Bar Spacing or Border Width
Is there any way to control the spacing between bars in a histogram, or
change the border width (I'm assuming the hist() function, though
alternatives are welcome)? I'm interested in changing the visual spacing
between columns in a plotted histogram.
The general effect I'm looking for can be accomplished in barplots using
the "width=" parameter, but I have not been able
2017 Aug 15
2
Shiny install failed
Very New to R trying to get setup but when i try to install shiny i get
trying URL 'http://cran.rstudio.com/src/contrib/shiny_1.0.4.tar.gz'
Content type 'application/x-gzip' length 2329723 bytes (2.2 MB)
downloaded 2.2 MB
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" CMD INSTALL -l
2019 Nov 29
2
security = ads parameter not working in samba 4.9.5
Hi Rowland,
The line 60 contains "{" in the script. The exit 1 statement is on line
number 58. Am I missing something?
Regards
Sachin Kumar
On Fri, Nov 29, 2019 at 5:21 PM Rowland penny via samba <
samba at lists.samba.org> wrote:
> On 29/11/2019 11:28, Sac Isilia wrote:
> > Hi Rowland,
> >
> > I get below error while running the script again.
> >
2017 Aug 15
1
Shiny install failed
Yes windows
How can i install from zip?
Here is my command
> install.packages("shiny")
Installing package into ?C:/Users/Zack/Documents/R/win-library/3.4?
(as ?lib? is unspecified)
There is a binary version available but the
source version is later:
binary source needs_compilation
shiny 1.0.3 1.0.4 FALSE
installing the source package ?shiny?
trying URL
2006 Mar 08
6
best practices for handling uploaded images and capistrano
Quick question: I am going to use the file_column plugin to manage uploading
thumbnails. By default the images are stored in the public/ dir of the
rails project. The problem I see is that when capistrano redeploys a new
build and symlinks it in none of the images will be in the new public/
dir... Does anyone have a solution for this?
Thanks,
Zack
-------------- next part --------------
An