On 12/18/2013 04:33 AM, bibek sharma wrote:
Hello R user,
I have created two plots (attached!) using the codes below
and would like to merge these figures in one. any suggestions are highly
appreciated!
Thanks,
plot(graph1$yod,graph1$xod,data=graph1)
dfx = data.frame(ev1=graph1$xod, ev2=graph1$
Here is a simple example (without the proportional size
bubbles--you've been given some references on that) using the lattice
package:
# one dataframe holds the data from both "sources" I call them.
# they would be data from your two separate dataframes,
# that you call graph1 and graph2
dd <- dat
On Tue, Dec 17, 2013 at 1:04 PM, bibek sharma wrote:
> Hi Sarah,
> It is not about mfrow or mfcol. I would like to see both sets of data in
> one figure.
> All I want was combining these two plots to one.
> Any suggestions?
> Bibek
Suggestions? Yes. Read the link I and others provided about
rep
What do you mean by "merge these figures in one"? If you want two
figures on one page, see ?par - specifically mfrow and mfcol.
If you want both sets of data in one figure, maybe ?points or ?lines
though I see you're already familiar with at least ?lines.
The list doesn't take most attachments, a
What do you mean by "merge" them into one? Make both graphs appear on
the same page of a document? Make a single figure containing both
graphs? Plot data from both dataframes on the same set of axes?
--Chris Ryan
On Tue, Dec 17, 2013 at 12:33 PM, bibek sharma wrote:
> Hello R user,
>
> I have
-r-reproducible-example
To answer your question probably you want to have a look a "mfcol" or "mfrow"
under ?par.
John Kane
Kingston ON Canada
> -Original Message-
> From: mbhpat...@gmail.com
> Sent: Tue, 17 Dec 2013 09:33:30 -0800
> To: r-help@r-project
Hello R user,
I have created two plots (attached!) using the codes below
and would like to merge these figures in one. any suggestions are highly
appreciated!
Thanks,
plot(graph1$yod,graph1$xod,data=graph1)
dfx = data.frame(ev1=graph1$xod, ev2=graph1$yod, ev3=abs(graph1$dif))
symbols(x=dfx$ev1, y
: arun
Cc:
Sent: Friday, December 14, 2012 12:56 PM
Subject: Re: [R] Hello R User
Hi Arun,
Great!
Once we get, time1, I again wanna add time to its previous value for
example, wanna get 0,3 4 etc...
can I have suggestion?
On Fri, Dec 14, 2012 at 9:42 AM, arun wrote:
> Hi,
>
> You could
1 -264 -264
#3 1 -147 -147
#4 1 606 606
#5 1 -185 -185
#6 1 -389 -389
A.K.
- Original Message -
From: bibek sharma
To: R help
Cc:
Sent: Friday, December 14, 2012 10:51 AM
Subject: [R] Hello R User
Hello R User,
In the sample data given below, time is reco
Hi Bibek,
how about this?
dta<-read.table(textConnection("ID Time
1 3
1 6
1 7
1 10
1 16
2 12
2 18
2 19
2 25
2 28
2 30"),header=T)
dta$delta<-with(dta,ave(Time,ID,FUN=function(x)c(0,diff(x
dta
hth.
Am 14.12.2012 16:51, sc
dataset<-data.frame(id=c(1,1,2,3,3,3),time=c(3,5,1,2,4,6))
dataset
id time
1 13
2 15
3 21
4 32
5 34
6 36
ids<-unique(dataset$id)
for(id in ids){
+ dataset$time[dataset$id==id]<-c(0,diff(dataset$time[dataset$id==id]))
+ }
dataset
id time
1 10
2 1
er 14, 2012 10:51 AM
Subject: [R] Hello R User
Hello R User,
In the sample data given below, time is recorded for each id
subsequently. For the analysis, for each id, I would like to set 1st
recorded time to zero and thereafter find the difference from previous
time. I.e. for ID==1, I would like to see
Hello R User,
In the sample data given below, time is recorded for each id
subsequently. For the analysis, for each id, I would like to set 1st
recorded time to zero and thereafter find the difference from previous
time. I.e. for ID==1, I would like to see Time=0,3,1,3,6. This needs
to be implement
13 matches
Mail list logo