Displaying 20 results from an estimated 50000 matches similar to: "disregard email about plotting 2 time series"
2009 Jun 17
1
problem with axis alignment when plotting 2 time series on same graph
I am trying to plot 2 time series on the same graph.
For example, X1 is the vector of dates and times, its class is POSIXt. Y1
is an environmental parameter, e.g. salinity. X2 is a second vector of
dates and times, also of class POSIXt. X2 has a different length than
X1, but they have the exact same range. Y2 is another environmental
parameter, e.g. stream flow rate.
My approach is
2009 May 28
1
plotting time series with data gap using type line- but do not want to connect gap with line
I have a time series of about 1500 measurements. There are sporadic data
gaps. I would like to plot the time series with type "line". I only want
a line to connect the periods with data; I don't want a line to connect
the points across a data gap. Is there a function or recommended method
to deal with this?
For example
there are 2000 days
days 1:1000 each have one
2010 Sep 01
3
how to represent error bar in a plot legend?
I have a simple barplot of 4 mean values, each mean value has an
associated 95% confidence interval drawn on the plot as an error bar.
I want to make a legend on the plot that uses the error bar symbol, and
explains "95% C.I."
How do I show the error bar symbol in the legend? I could not find any
"pch" values that are appropriate
Thanks
[[alternative HTML version
2010 Aug 07
4
basic question about t-test with adjusted p value
I have read the R manual and help archives, sorry but I'm still stuck.
How would I do a t-test with an adjusted p-value?
Suppose that I use t.test ( ) , with the function argument alternative =
"two.sided", and data such that degrees of freedom = 20. The function
calculates a t-statistic of 2.086, and p-value =0.05
How do I then adjust the p-value? My thought is to do
2010 Dec 16
2
moving average with gaps in time series
I have a time series with interval of 2.5 minutes, or 24 observations per
hour. I am trying to find a 1 hr moving average, looking backward, so
that moving average at n = mean(n-23 : n)
The time series has about 1.5 million rows, with occasional gaps due to
poor data quality. I only want to take a 1 hour moving average for those
periods that are complete, i.e. have 24 observations in the
2006 Feb 13
2
Plotting contour & filled.contour in one graph
Dear All,
I have a question on overlaying a filled.contour (e.g. on soil properties data) and contour (by elevation) in one graph. Both have the same z matrix dimension. I'm able to overlay both graph, but the plots dimension did not overlap well on the same plots. How can I have both filled.contour and contour on the same graph? The commands that I have written are as follows:
2011 Apr 20
0
Test email: Please disregard
Having trouble posting. Thought it might have something to do with the particular message I'm sending. Sending this message to test that possibility.
2013 Apr 11
1
Adding time series to time graphs
Hello: I have done this before but cannot figure out how to do it again.
I would like to graph campaign evolution of news stories on certain topics. The campaign time period is as follows:
campaign<-seq.Date(from=as.Date('2011-09-06'), to=as.Date('2011-10-5'), by=1)
I have a table of newspaper story frequencies containing a certain word that can be turned into a data.frame
2008 May 10
1
irregular time series and multiple, overlaid plots
I am new to R and am trying to solve the following problem:
I have a data file containing tick-by-tick, millisecond level prices for
some stocks. I have another file or two containing orders and trades,
again, with millisecond time-stamps. Both of these files are irregularly
spaced and the time stamps are in an iso format (<date>
<time>.<millisecond>)
I would like to create a
2011 Apr 23
3
Problem having tick marks aligned when plotting three graphs on top of one another.
R 2.10
Windows 7
I am trying to plot three graphs on top of each other. I need to have the axises perfectly aligned. For some reason the ticks on the y axes are slightly off so they do not perfectly align. Can someone tell me how I can get the to overlay each other perfectly? I thought the yaxp parameter would solve my problem, but it does not. My data and code follows:
>
2009 Apr 13
1
overlay multiple time series on one plot
Hello,
I have four different time series from the same time period within a
year (February through August) but they are from different years. I can
not figure out how to plot them all (so they will be overlayed instead
of plotted on after another) on the same graph with the x-axis
corresponding to the month/day instead of year/month/day.
Thank you.
Max
2003 Mar 12
3
png plots
I saw in the archive a post from Mark Wilkinson (Feb 1, 2003), saying
that some of his R-generated png plots came out overlapping.
I am seeing the same thing (with R 1.6.2 on Linux i686). My input
file generated 4 plot files. The first two were fine, but the last 2
featured a weird overlay of the remaining graphs. The problem is not
seen with postscript of pdf output.
--
Allin Cottrell
2008 Oct 01
0
plotting several yearly/monthly time series on the same plotting several yearly/monthly time series on the same graph
I have searched the forums but I am having trouble trying accomplish two
specific plots. I am not sure if this is a very basic task but I am having a
lot of trouble Here is my data frame:
date prod_daily price
1 2003-08-15 12050 4.83
2 2003-08-18 12050 4.94
3 2004-08-10 12300 5.78
4 2004-08-11 12300 5.64
5 2004-08-12 12300
2010 Jul 30
0
CBIND / MERGE two time series objects along time (overlapping indices, redundant data)
Hi there,
I need to merge/bind two time series objects (from RPackage: timeSeries) by
column. The theory is laid out nicely, even for overlapping indices.
In my example, I have overlapping indices ("01.01.2001"), where in one time
series I have one data point and in the other redundant data. Default usage of
merge and cbind would lead to the result that the one data point would be
2009 Feb 20
1
plotting questions
hi,
There are two types of plotting I miss dearly in Matlab, can anyone
enlighten me how to do similar stuff in R?
- multiple figures with individual windows (not multiple figures in
same window)?
- draw something, hold on the drawing, wait for a key action, then
overlay on top?
Not sure if this makes sense, just want to check if there are
developed techniques for them.
Thanks
Oliver
2011 Jan 23
1
Plotting multiple xts/zoo time series on a single plot.
So I've got a 154 column wide xts time series object and I want to plot the
154 series on a single plot and have the added benefit of the time series
dates on the x axis.
Any suggestions for plotting functions, maplot works but does not give dates
on the axis and I can't seem to get plot to give me more than one series.
Nick
[[alternative HTML version deleted]]
2011 Dec 24
5
need help with a time series plotting problem
Dear R Users,
I am a beginner in R programming and need some help
with a simple plotting problem that i am having. My dataset consist of three
columns: first one has data_id, second is the date and third is the actual
data itself corresponding to each date. The date ranges from
1/1/2000-12/31/2009. I am trying to plot my data versus the dates as a long
term time series but
2006 Feb 15
2
Plotting two 3-dimensional time series in a 3 x 2 plot - alternatives to par(mfrow())
I am trying to plot two 3-dimensional time series in one window (such that there will be 3 rows and 2 columns). For zoo and ts objects the par(mfrow...) option does not work. I can get xyplot to make the plots, but data are on widely different scales in the three dimensions, and xyplot uses the same scale on all y-axis which means that in some dimensions the curves will be almost horizontal lines.
2004 May 17
1
Plotting Time against Date for time series data?
Dear all,
I have a data set containing GPS fixes of animal locations. To check that
the GPS's are working properly, I would like to plot the time of the fixes
(y-axis) against the date of the fixes (x-axis). If all works well, the
plot should show four regular fixes per day. The x-axis should be labelled
with month/year (i.e. 11/04) and the y-axis by hour from 00 to 24. I would
like to
2001 Jul 09
1
Error plotting time series
Hi there,
when plotting a time series I got this error message:
Error in xy.coords(x, y, xlabel, ylabel, log) :
x and y lengths differ
In addition: Warning messages:
1: longer object length
is not a multiple of shorter object length in: vx.1[int.lr] + (-1) *
vx.2[int.rl]
vx.1[int.rl] and vx.2[int.rl] have the same length. Does anybody know
what the warning message means?
Thanks, Sven