Hi:
Not sure, but perhaps you had something like this in mind:
y <- runif(100)
w <- matrix(y, nrow = 10) # fills in column-wise
v <- apply(w, 2, cumsum)
plot(1:100, y, type = 'l', col = 'blue')
lines(1:100, as.vector(v), type = 'l', col = 'red')
Reshaping into a matrix and using apply() to
On Tue, Feb 01, 2011 at 10:51:12PM +1300, Surrey Jackson wrote:
> Hello,
>
> I have some data where a number of events (the total amount varies)
> occur at cumulating times, I would like to create a scatterplot
> (easily achieved using plot etc) of these events (the events can
> either be times u
Hello,
I have some data where a number of events (the total amount varies)
occur at cumulating times, I would like to create a scatterplot
(easily achieved using plot etc) of these events (the events can
either be times using poxist or I can convert them into just seconds
which is probably easier
Is this what you want?
x=rnorm(10)
y1=0.5*rnorm(10)+0.5*rexp(10)
y2=0.5*rnorm(10)+0.5*runif(10)
xlimit=range(x)
ylimit=range(c(y1,y2))
plot(x,y1,pch="1",col=2,xlim=xlimit, ylim=ylimit, ylab="Y", xlab="X",
cex=0.7)
points(x,y2,pch="2", col=4,cex=0.7)
--
View this message in context:
http://r.7
On Aug 27, 2010, at 2:16 PM, ashz wrote:
Hi,
I have two XY datasets (e.g., longitude and concentrations) who
share the
same X scale. How can I make a simple scatterplot which will combine
them
both with different colors for the two Y groups? (plot and xyplot
solutions
are fine with me
Hi,
I have two XY datasets (e.g., longitude and concentrations) who share the
same X scale. How can I make a simple scatterplot which will combine them
both with different colors for the two Y groups? (plot and xyplot solutions
are fine with me).
Thanks in advance.
Cheers
--
View this messa
6 matches
Mail list logo