similar to: strwidth to lines

Displaying 20 results from an estimated 100 matches similar to: "strwidth to lines"

2006 Jan 23
8
Image Processing packages
Hi, I've been looking for Image Processing packages. Thresholding, Edge Filters, Dct, Segmentation, Restoration. I'm aware, that Octave, Matlab etc. would be a good address but then I'm missing the "statistical power" of R. Does anybody know of packages, projects etc. Comments on wether the use of R for such matters is useful are welcome. Greetings Thomas Kaliwe
2009 Mar 04
2
lattice: remove box around a wireframe
#Hi, # #somebody knows how to remove the outer box around a wireframe and reduce the height # # test = data.frame(expand.grid(c(1:10), c(1:10))) z = test[,1] + test[,2] test = cbind(test, z) names(test) = c("x", "y", "z") require(lattice) wireframe(z ~ x*y, data = test, par.box = c(col = "transparent") ) #not this one but the remaining outer box.
2008 Nov 26
1
S4 slot containing either aov or NULL
Dear listmembers, I would like to define a class with a slot that takes either an object of class aov or NULL. I have been reading "S4 Classes in 15 pages more or less" and "Lecture: S4 classes and methods" #First I tried with list and NULL setClass(listOrNULL") setIs("list", "listOrNULL") setIs("NULL", "listOrNULL") #doesn't
2009 Mar 19
4
Import R-output into Java
Hello, I want to import R-output via Rserve to Java, especially for the function ctree from the package party. Rserve is working properly. Yet, I only get the predictions with the Java code try{ RConnection c = new RConnection(); ... c.voidEval("modell <- ctree(...)"); REXP y = c.eval("nodes(modell,1)[[1]]$prediction"); ...
2006 May 05
3
OT: DOE - experiments for teaching
Hi, I'm sorry for this not being related to R but I think this is a good place to ask. I'm looking for DOE examples(experiments) that can be done at home or in class, such as Paper Helicopter, Paper Towel etc.. I'm thankful for any comment. Thomas [[alternative HTML version deleted]]
2009 Jul 17
2
how to evaluate character vector within pnorm()
Hi, I'm trying to evaluate a character vector within pnorm. I have a vector with values and names x = c(2,3) names(x) = c("mean", "sd") so that i tried the following temp = paste(names(x), x, sep = "=") #gives #> temp #[1] "mean=2" "sd=3" #Problem is that both values 2 and 3 are taken as values for the mean argument in pnorm pnorm(0,
2007 Mar 23
1
using "\t" in mtext
Hi, Using tab spaces in mtext e.g. > mtext("\t") little squares are plotted. Is there a way to use "\t" without getting squares displayed? Thanks Thomas [[alternative HTML version deleted]]
2009 Jun 24
1
lattice wireframe within a loop ???
Hi, I have the following problem. Calling wireframe within a loop results into an empty window(s) #generate some data temp = expand.grid(A = 1:3,B = 1:3) temp = cbind(temp, y1 = rnorm(9)) temp = cbind(temp, y2 = runif(9)) #plot y1 and y2 in two different windows for(i in 1:2) { wireframe(y1 ~ A*B, temp, shade =T) windows() wireframe(y2 ~ A*B, temp, shade =T) } #However, calling it twice
2008 Jun 25
2
T and P Statistics
How do you calculate T and P statistics (T- test) in R? Is there a package out there that can do these calculations? Best, Michael Tong Futures Associate Quantitative Research Services Franklin Templeton Investments, Inc. 600 Fifth Ave New York, NY 10020 (212) 632-4254 mtong@templeton.com Notice: All email and instant messages (including attachments) sent to or from Franklin Templeton
2013 Jan 10
2
[LLVMdev] LLVM Instruction*->getOperand() not working properly for ICMP
Hello everyone ! In my pass I inspect the penultimate instruction from every basic block in runOnFunction(). I am interested in ICMP instructions only. if(BB->size()>1) if(last->getPrevNode()) { previous = last->getPrevNode(); ok=1; } I want to get the operands of previous, which is of type Instruction*. Due tests based on getNumOperands, ICMP has 2 (as
2013 Jan 10
0
[LLVMdev] LLVM Instruction*->getOperand() not working properly for ICMP
Hi, On 10/01/13 10:56, Alexandru Ionut Diaconescu wrote: > Hello everyone ! > > In my pass I inspect the penultimate instruction from every basic block in > runOnFunction(). I am interested in ICMP instructions only. > > |if(BB->size()>1) > if(last->getPrevNode()) > { > previous = last->getPrevNode(); > ok=1; > } > |
2013 Jan 11
2
[LLVMdev] LLVM Instruction*->getOperand() not working properly for ICMP
Hi Duncan, Thank you for your response! Now it works. But I have another problem: Do you know how can I iterate through a Value*? For instance, I have : Instruction *I1; // I take only I1 that are ICmp errs()<<"\n "<<*I1->getOperand(0)<<" \n"; // %3 = load i32* %c, align 4 As expected. Now I want to get %c from the previous to use "%c" in
2002 Apr 17
1
Using strwidth before plotting
In the plotcorr() function in the ellipse package, I want to position things differently depending on the size of the labels. I can use strwidth to find out the length of the labels, but only when there's a plot window open: it won't open one. Question: What function call says: make sure there's a window open (i.e. do what plot() does before it starts plotting)? I don't think
2002 Aug 14
1
strwidth
Dear plotting experts, I need to determine the width of a string before plotting it to the current device because I want to adjust `mai' to have the necessary space available. It seems to me that this is an "hen and egg" problem: R> a <- "test" R> strwidth(a) Error in strwidth(a) : plot.new has not been called yet # ok, I need an open device R> plot(1:2,
2004 Nov 20
1
Error with strwidth after lattice graphic drawn
In platform i386-pc-linux-gnu arch i386 os linux-gnu system i386, linux-gnu status major 2 minor 0.1 year 2004 month 11 day 15 language R I'm getting an error when using strwidth after a lattice graphic is drawn: library(lattice) xyplot(runif(20) ~ runif(20)) strwidth('xxx') Error in strwidth("xxx") : invalid graphics state Any help
2005 Jun 11
1
Wishlist: strwidth allow for rotation of text (PR#7931)
Hi, This is not a bug, but an enhancement suggestion. "strwidth" only gives the width of the text according to the x-axis user coordinates, and similarly for "strheight". Even if the par setting "srt" is changed to rotate the text, the resulting width (resp. height) is in terms of the non-rotated text. Currently, if I want to know how much space to leave for
2007 Oct 30
3
strwidth of bold font
Hi! Is there a way to get the string width of the bold typefaces? like: strwidth("text", family = "serif", font = 2). Thanks Roland
2010 Mar 16
2
R-Documentation including an image?
Dear List Members, I was wondering if there's a way to include an image in a .Rd file, something like \img{} In http://cran.r-project.org/doc/manuals/R-exts.html#Documenting-packages nothing's mentioned regarding images (besides the image of the workspace) Is there a way to include an image? Thanks in advance, Thomas -- Dipl.-Ing. Thomas Roth (geb. Kaliwe) Technische Universitaet
2007 Nov 07
1
strwidth and strheight for rotated text
Dear All, I would like to plot text with a box around it. I used strwidth and strheight to compute the size of the box which is plotted with rect: z <- rnorm(10) # horizontal text works plot(rnorm(10)) x1 <- 5 y1 <- 0 label <- "Label" cha <- paste(" ", label, " ", sep = "") xh <- strwidth(cha, cex = par("cex")) yh <-
2008 Jun 30
2
Plotting question: Problem with strwidth in 2.7.1
R users, I have a problem with function strwidth in 2.7.1. I'm trying to set the plot margins in a way that horizontal column labels will fit to the graph. tmp.t is a list of data.frame objects. This code works well in 2.6.0. ...snip.. library(gplots) for (i in names(tmp.t)) { bmp(filename=paste(i, "_", Sys.Date(), ".bmp", sep=""), width=1038,