Hi,
I am trying to plot the following time series:
Low sampling rate Low sampling rate Sample High sampling rate High
sampling rate Sample 09:50:00 4.474203 09:50:37 4.465 10:00:00 4.493805
09:50:38 4.452 10:10:00 4.503606 09:50:39 4.451 10:20:00 4.513407 09:50:40
4.465 10:30:00 4.503606 09
Glad to help!
There are definitely enough colors, but they aren't all assigned
numbers automatically: to see a list of built in ones, try colors()
You can always use a character string to specify a color as well --
but I think the easiest thing to do might be to use one of the palette
functions l
Sorry about that, new to posting here! Your code was extremely helpful, and
tweaking it a bit gave me the output I was looking for:
plot( rep(1:12, 17), pox, col = rep(1:17, each = 12), xaxt = "n",
ylab="Reported Cases",xlab =
"Months", pch = 20, main="Monthly Trends of Chickenpox")
axis(1, at = 1
If you can wait a day or two, the next version (1.18) of the 'tis' package that
I will put on CRAN very soon has a function called "tierChart" that does
what you want with a 'tis' series.
--
Jeff
__
R-help@r-project.org mailing list
https://stat.ethz.c
Your data set is not reproducible from an image (use dput() on your
next post to give us a taste of your data) but I'll hazard it's a ts
class object. If so, try this:
X <- ts( sample(500, 204), frequency = 12, start = 1995)
plot( rep(1:12, 17), X, col = rep(1:17, each = 12), xaxt = "n", xlab =
"
Hi,
I have a dataset which includes monthly data for 17 years. I want to be able
to see the monthly data behavior for the period of all 17 years.
What my data looks like:
http://r.789695.n4.nabble.com/file/n4162534/data.jpg
I would like to represent the data in a graph such as the one below:
Hi all,
I have a matrix as given below...
year month day prec
1 1980 10 1 13.4
2 1980 10 2 0.0
3 1980 10 3 0.0
4 1980 10 4 0.0
5 1980 10 5 0.0
6 1980 10 6 0.0
7 1980 10 7 0.0
8 1980 10 8 0.0
9 1980 10 9 0.0
10 1980 10
ericht-
> Van: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] Namens Alison Macalady
> Verzonden: donderdag 16 september 2010 8:51
> Aan: r-help@r-project.org
> Onderwerp: [R] plotting time series using ggplots
>
> Hi,
> I would like to plot a bunc
Hi,
I would like to plot a bunch of tree ring width data (time series)
using ggplots, but I'm having trouble figuring out how to do it.
My data is in a data.frame, with years as rownames and a distinct tree
ring series in each column. So, something like this:
rwl<-matrix(rnorm(800), nrow =
Hi,
I'm new to R.
I've two sort of time series, one sampled every second and other every 30
minutes stored in two data.frames zy1 and zy2.
I've joined the two series using
date<-merge(zy1,zy2, all.x=T,all.y=T)
when I want to make a plot, using the code below, it doesn't work.
It gives me the
Just place a point with an NA value between the two segments.
Here is one way to do it in zoo:
set.seed(123)
library(zoo)
# create sample data
tt <- c(1:1000, 1200:2000)
z <- zoo(rnorm(length(tt)), tt)
# this will fill in omitted values with NAs
z <- as.zoo(as.ts(z))
plot(z)
On Thu, May 28,
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
t
ts() only knows about monthly and quarterly series, not biannual ones.
You need to look into methods for irregular series (zoo, its, tseries
...), or add dates yourself (?plot.POSIXct). E.g.
x<-sample (10:100, 17)
x<-ts(x, start=c(1998,1), frequency=2)
xtime <- seq(as.Date("1998-05-01"), by="
Hi List,
I have the following time series and i want to be able to plot it while having
the x-axis running from 1998 to 2006 but in a bi-annual format
So here is my example:
x<-sample (10:100, 17)
x<-ts(x, start=c(1998,1), frequency=2)
plot(x)
When I plot the ts it goes from 1998 to 2006 by
14 matches
Mail list logo