It's hard to help if you keep changing the framework of your problem,
first two matrices - now it's a data.frame and a list of subset row
names in a plotting method from whatever package "suprow" comes from.
Regardless, Michael's original answer already gave you a solution:
plot(table1,type='l',lw
The response much appreciated. They do match up, one is a small subset of
the other.
I have this:
> dput(table1)
structure(list(var1 = c(2L, 4L, 4L, 1L, 423L), var2 = c(3L, 5L,
6L, 342L, 3L)), .Names = c("var1", "var2"), class = "data.frame", row.names
= c("node1",
"node2", "node3", "node4", "node
Do your matrices "match up" with each other in any meaningful way or
do you just want two independent plots on a single page?
You should probably provide the dput() output of each table object so
we can see what you've got.
Michael
On Fri, Mar 9, 2012 at 11:07 AM, aoife doherty wrote:
> Many th
Many thanks for reply.
I have trouble understanding how to use response, i am sorry.
My question is i have two matrices. I then plot two matrices. Then I have 2
seperate plots. I can color the nodes in the plots in two different colors.
Then, how do i merge the two plots to view one overlapping the
No idea what table1, table2 are
plot(1:5, type = "l")
points(5:1, col = 2)
should get you started.
Michael
On Fri, Mar 9, 2012 at 10:17 AM, aaral singh wrote:
> Hello.
>
> I have 2 plots.
>
>> plot1 <-plot(table1)
>> plot2 <-plot(table2)
>
> How may i plot these both on the same graph, i.e
Hello.
I have 2 plots.
> plot1 <-plot(table1)
> plot2 <-plot(table2)
How may i plot these both on the same graph, i.e. layer one graph on top of
the other one.
The result should look similar to this the image below, where the black
lines indicate one plot, and the red dots indicate the second pl
6 matches
Mail list logo