search for: graph1

Displaying 20 results from an estimated 22 matches for "graph1".

Did you mean: graph
2009 Sep 11
2
Graph visualization
...nd adjacency matrix, the package 'graph' seems to be appropriate for this. An example in the package > mat <- rbind(c(0, 0, 1, 1), + c(0, 0, 1, 1), + c(1, 1, 0, 1), + c(1, 1, 1, 0)) > rownames(mat) <- colnames(mat) <- letters[1:4] > graph1 <- new("graphAM", adjMat=mat) > graph1 A graphAM graph with undirected edges Number of Nodes = 4 Number of Edges = 5 how can I plot the object graph1? Thanks in advance Arber [[alternative HTML version deleted]]
2012 Nov 08
2
How to include CI in a grouped barplot?
...confidence interval bar in a grouped barplot. I've found some options on the web, but none of them solved my problem. The question is: my barplot was created using vectors for each pair of bar and them combining them using cbind. I mean: a=c(10,15) b=c(20,24) c=c(21,23) ... hei=cbind(a,b,c) graph1=barplot(hei, beside=T,...) I've tried to include each CI in a vector just like the height of the bars, but it hasn't worked (!!) Is there an easy way to do this?? Thanks a lot =) Thais Rangel (Rio de Janeiro, Brazil) [[alternative HTML version deleted]]
2008 Jan 30
2
Concatenate xyplots
Dear R-community, I created 5 different xyplots and graphed all of them with the print command on one page (e.g. print(graph1, split=c(1,1,1,5), more = T) ... print(graph5, split=c(1,5,1,5), more =T) Using the above commands separates each graph by a white space. However, since the graphs do share the same x-axis, I was wondering if there is a way to concatenate graph1 through 5 so that the white space disappears?...
2010 Nov 19
1
How to print "graph1.png" "graph2.png" "graph3.png" ... ?
Dear All, I want to print out "graph1.png" "graph2.png" "graph3.png" ... How can I print it out? Thank you,
2003 May 21
2
Graphics device history recording problem (Previous and Next utilities)
I use 1.7.0 version under Windows XP. Problem: When graphics device history recording function turned on, suppose I source a file containing lines: plot(graph1) plot(graph2) I see the graph2 in the graphic device, assuming graph2 is the last plot in the file. Now using "Previous" under history menu, I get graph1 as expected. But after that, using "Next" does not show graph2. Is this a normal behavior? If so how do you get back to grap...
2013 Jun 19
2
knitr without R studio
...ALSE} opts_knit$set(progress = TRUE, verbose = TRUE) opts_chunk$set(fig.width=20, fig.height=12) knit_hooks$set(fig.bg = function(before, options, envir) { if (before) par(bg = options$fig.bg) }) ``` ```{r graphs,fig.keep=?last?} for (x in 1:10) plot(rnorm(100), col = x) ``` ```{r graph1} plot(rnorm(500), type="lines", main="Graph1") ``` Top of the Page <#top> ```{r graph2} plot(rpois(500,3), type="lines", main="Graph2") ``` Top of the Page <#top> </body> </html> ) But R keep sending me error...
2008 Aug 11
1
frequency of labels in a barplot
I'm trying to control the number of labels in the x-axis of my plot. My code is the following: graph1<-barplot(total_skew) axis(1,at = graph1,labels=raw_date[1:length(total_skew)], las=2) however, the length of my "total_skew" parameter is a few thousand elements, and all the labels on the x-axis are overlapping and cluttered. How do I specify the frequency or number of labels I want...
2009 Jan 12
1
Problem between panel.abline and log scales (lattice)
Hello and Happy New Year to all R-Users !!! I would like to plot a lattice graph with a logarthmic y axis and add two reference lines that is : ref<-c(0.0070, 0.0096) graph1<-xyplot(data$y1 ~ as.numeric(strptime(data$x1, format="%Y-%m-%d %H:%M:%S")) | as.character(data$Code), list(y = list(log = T)), xlab="X'", ylab="Y", panel = function(...) { panel.xyplot(..., type="p", pch=20) panel.ablin...
2009 Aug 25
1
Clogit or LRM?
...ppreciate the group's opinion. I've been using the val.prob function from the Design library (Thanks Frank!!) to both evaluate and visualize my model. From the scores and graph, it appears as my model is very accurate in predicting probabilities correctly. Please see attachment "graph1.pdf" Since I'm scoring horse races, I assume that I need to "normalize" the predicted probabilities by race. (Described in Bentor.) I am calculating a conditional logit manually since there is a bug in the Survival library for this function. A val.prob function applied to my...
2012 Apr 26
1
Sweave: Avoiding recompilation of figures
Hello everybody out there using Sweave, There are some complicated SQL queries and laborous calculations against large data included as R code chunks using Sweave in my LaTeX document. These code chunks create graphs that do not change most of the time, but they are of course recompiled every time I run Sweave on my file for update of minor changes to the LaTeX text. Is there an option
2006 Aug 24
1
help: trouble using lines()
...been using ReML as follows... model<-lmer(late.growth~mtf+year+treat+hatch.day+hatch.day:year+hatch.day:treat+ mtf:treat+ treat:year+ year:treat:mtf+(1|fybrood), data = A) then I wanted to plot the results of the three way interaction using lines() as follows... tmp<-as.vector(fixef(model)) graph1<-plot(mtf,fitted(f2), xlab=list("Brood Size"), ylab=list("Early growth rate"), pch=16, col="darkgrey", bg="yellow") lines(y,exp(tmp[1]+tmp[2])) but no matter what I try I always get the error message "Error in xy.coords(x, y) : 'x' and 'y...
2011 Jul 12
4
qplot and for loops
...d Trial.4. Also note that I can easily make any of the four graphs by i=1 or i=2, etc. qplot(x<-mydata[,i]) I just need to figure out how to make it loop correctly. The ultimate goal would also be to save these graphs to my computer with automatically generated file names. Something like test graph1.png, test graph2.png, etc. Thanks For The Help! -- View this message in context: http://r.789695.n4.nabble.com/qplot-and-for-loops-tp3663292p3663292.html Sent from the R help mailing list archive at Nabble.com.
2002 Oct 13
2
HOW to resize existing graphics window??
Sorry for newbie question, but i havent find the way to resize existing graphics window from r console. Of course, i can do it by dragging window borders and i can set up size of the device (window) if i call windows(width,height) but is it really impossible to resize existing window?? how i can do this? i am using R 1.6.0 on Microsoft Windows 2000 OS Thanks for your help
2007 Jul 17
2
Combine R2HTML and Rcmd BATCH?
Hi All, I have an R script that spawns output in the form of an HTML page. This is done by the R2HTML package. Now I want to run the same script using Rcmd BATCH. However, it seems that it is not possible to use R2HTML in this case. My script ends with this error message: ######################### Error in dev.print(png, file = AbsGraphFileName, width = Width, height = Height, : can only
2007 Sep 27
3
testing the contents of an environment
Suppose I want to delete everything in my working directory that is not a function. It seems that sapply(ls(),is.function) always returns FALSE, because ls() returns objects of mode character. How do I evaluate is.function(), not on a character string, but on the object that character string represents? Thanks, Tim
2004 Apr 03
2
a fix for rotated PDF graphs
...ay them rotated, so I don't think it's an actual acroread bug. I am using R 1.8.1. The solution is to "distill" the files using eps2eps, part of ghostscript on my Debian box. Here is an example Makefile I use for this: ---- cut here ---- EPS2EPS=eps2eps EPSTOPDF=epstopdf all: graph1.pdf graph2.pdf %.pdf: %.raweps $(EPS2EPS) $< $*.eps $(EPSTOPDF) $*.eps ---- cut here ---- So I have a fix now, and it works. But I still think that either the postscript() function in R, or both acroread and gs are broken. I know no ps/pdf, so I can't decide which, but in...
2009 Nov 06
4
Guardar gr=?US-ASCII?Q?=E1?=ficos en formato para powerpoint
Hola, Por favor, necesito guardar en un mismo documento tres gráficos y que éste se pueda abrir en powerpoint para poder insertar las tres gráficas allí. Con jpeg() sólo se me guarda la última gráfica. ¿Alguien me puede ayudar?. Muchas gracias
2002 Aug 10
1
How to concatenate a variable and assign value
for(i in c(1,50,100,250)){ Then I want to create a variable called: graph++i <- histogram... } Any ideas? With hist it is easy to create multiple graphs on a page but with the trellis histogram, I am finding it a bit more awkward. It seems that I have to use print(graph1, split=c(1,1,1,2), more=T) to achieve the desired result. Does anyone have code they are willing to share which makes this a bit more manageable? Thanks. geoff -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/...
2010 May 06
2
Problem with nested functions - functions nested too deeply in source code
...- 0 } sc[1] <- 1 refine3(M, A, B, p_A, p_B, FAIL, elim, i, j, k, sc, h, lst, x) } refine3 <- function(M, A, B, p_A, p_B, FAIL, elim, i, j, k, sc, h, lst, x){ #print("refine 3") # check if there is a 1 in the current row in adjacency matrix of graph1 which is on the same position of the 1 in sc # sc is a binary string whith only one 1. The position of the one goes from the first position of sc to the last position # and is used for scanning. First this is done for graph 1, and than for graph 2. Then it is checked if the following condit...
2004 Feb 03
3
R: plotting multiple functions
Hi all Another simple question. I would like to plot three graphs one the same plot with different colours. Say red, blue and black. Here are the functions. r1<-1+5*cos(2*pi*seq(1:100)/20)+rnorm(100) r2<-1+7*sin(2*pi*seq(1:100)/20)+rnorm(100) r3<-1+7*sin(2*pi*seq(1:100)/20)+5*cos(2*pi*seq(1:100)/20)+rnorm(100) Regards Allan