[R] Change the limits of a plot "a posteriori"

2011-12-01 Thread jcano
Hi all How can I change the limits (xlim or ylim) in a plot that has been already created? For example, consider this naive example curve(dbeta(x,2,4)) curve(dbeta(x,8,13),add=T,col=2) When adding the second curve, it goes off the original limits computed by R for the first graph, which are rou

[R] All possible paths between two nodes in a flowgraph using igraphs?

2010-05-04 Thread jcano
wo or more. Thanks in advance jcano http://n4.nabble.com/file/n2125347/flowgraph_subsume.jpg -- View this message in context: http://r.789695.n4.nabble.com/All-possible-paths-between-two-nodes-in-a-flowgraph-using-igraphs-tp2125347p2125347.html Sent from the R help mailing list archive at Nabbl

[R] All possible paths between two nodes in a flowgraph using igraphs?

2010-05-04 Thread jcano
45631, 45634; and no loops of order two or more. Thanks in advance jcano -- View this message in context: http://r.789695.n4.nabble.com/All-possible-paths-between-two-nodes-in-a-flowgraph-using-igraphs-tp2125321p2125321.html Sent from the R help mailing list archive at Nabbl

Re: [R] How to create a legend that automatically reads the values from two vectors?

2009-10-22 Thread jcano
Hi JIm Not exactly what I want, as I can't draw the lines corresponding to the different curves in the plot as I can do in legend, but may be still of help. Thkx, Javier Jim Lemon-2 wrote: > > On 10/21/2009 01:30 AM, jcano wrote: >> betav<-c(0.78,0.94,0.88,0.41,0

[R] How to create a legend that automatically reads the values from two vectors?

2009-10-20 Thread jcano
Hi all!!! How can I create a legend to my plot that automatically reads the values from two vectors? betav<-c(0.78,0.94,0.88,0.41,0.59,4.68) etav<-c(235.6,59.5,31.2,8.7,3.2,1174) I want my legend to show 6 lines beta(in greeks)=0.78,eta(in greeks)=235.6 beta(in greeks)=0.94,eta(in greeks)=6.59 .

Re: [R] How to pass a character argument which contains expressions to arg.names in barplot?

2009-07-24 Thread jcano
Dear Uwe Sorry for not included the data, but even as that, it worked! Thank you very much for your unvaluable time and effort Cheers Javier Cano -- View this message in context: http://www.nabble.com/How-to-pass-a-character-argument-which-contains-expressions-to-names.arg-in-barplot--t

[R] How to pass a character argument which contains expressions to arg.names in barplot?

2009-07-23 Thread jcano
Hi all Can anybody help me with this? I am trying to include in an automatic way the argument in arg.names in a barplot. I generate the labels I want to appear below the bars with a for loop, and they contain subscripts, so I need to use expression anch<-0.05 esp<-4 for (i in 1:dim(Ntot)[1