search for: labcurve

Displaying 15 results from an estimated 15 matches for "labcurve".

Did you mean: calcurve
2008 Oct 17
1
Using key.opts in Ecdf/labcurve (Hmisc package)
I'm presumably missing something very obvious, but how does one use the key.opts argument in labcurve (via Ecdf)? In this example, I want the key to be big and have a blue background, but it isn't and doesn't. ch <- rnorm(1000, 200, 40) sex <- factor(sample(c('female','male'), 1000, TRUE)) Ecdf(~ch, group=sex, label.curves=list(keys=c("f", "m"),...
2007 Oct 19
1
unable to interactively label curves on a plot
Hello all Simple question for the gurus. I'm trying to interactively label curves on a single plot. The labcurve() function from Hmisc seems like the way to do this (?). I just can't seem to get it to work. Toy example: > x <- 1:10 > y1 <- x^2 > y2 <- 2*x > plot(x,y1) > lines(x,y2) > labcurve(labels=c("curve1", "curve2"), method="locator")...
2010 Mar 10
2
Placing the legend 'dynamically'
Hello, does anybody know which command to consider when I'm trying to plot a stacked barplot with a legend at the most empty portion of the graphic? I've searched for it, and somebody stated to use the labcurve-command, but I don't know how to produce stacked barplots with it. Is there any possibility to plot a legend box "dynamically" (= in an empty region) with the legend()-command? That would be helpful, because I'm already using this one. Thank you, Kind regards, Tom
2007 Apr 28
1
Hmisc curve label size & cex
...These commands produce the problem on my PC using XP: png("trial.png", width=3000, height=2400, res = 600, pointsize=12 ) par(ann=F, font.main=1, font.lab=1, font.axis=1, cex=5, cex.main=1, cex.lab=1, cex.axis=1, lwd=12, las=1, mar=c(4, 4, 2, 2) ) x = seq(-2.5, 2.5, length=100) labcurve( list( One= list( x,sin(x)), Two= list( x,cos(x)), Three=list( x,(x*x)), Four= list( x,exp(x)) ), keys=c('1','2','3','4'), keyloc="none", pl=TRUE ) dev.off() Thanks for your time. -- Brian O'Connor Ontario, Canada
2013 Nov 19
1
como agrego una linea dibujada con abline() en la leyenda de un grafico ?
Estimado Eric En Hmisc la función labcurve puede ser útil, en todos casos crear una curva con valores constantes, habría que intentar, pero labcurve en algunos ejemplos en mi computadora no anda. Ayer envié dos correos, el primero era de latticeextra, usted nombra lattice, pero podría funcionar, en latticeextra: ## horizontal and verti...
2003 Jun 05
2
Fwd: Re: legend() with option adj=1
Is there a simpler way then the solution to the one that was posted here? I'm not very proficient with legend, and I don't understand this solution. All I have is two or more lines on one plot that I want to put a legend on and I can't figure out how to do it from the examples. Can you give a very simple example? It does not have to be fancy!! I have never worked with a
2013 Nov 19
2
como agrego una linea dibujada con abline() en la leyenda de un grafico ?
Eric Recordé un ejemplo rápido ## Setup up coordinate system (with x == y aspect ratio): plot(c(-2,3), c(-1,5), type = "n", xlab = "x", ylab = "y", asp = 1) ## the x- and y-axis, and an integer grid abline(h = 0, v = 0, col = "gray60") text(1,0, "abline( h = 0 )", col = "gray60", adj = c(0, -.1)) abline(h = -1:5, v = -2:3, col =
2003 Oct 05
3
Placing legends
I'm trying to automate making a bunch of figures and I need a way to automate legend position. As I understand it the legend is placed based on coordinates. I don't know before hand what the coordinates are going to be. On one graph my y axis might go from -50 to -10. On another it might go from 0 to 180. Is there any way to query where the origin is? Or is there another way to
2009 Apr 30
1
Legend best position
Hi all, I'm doing a lot of plots and all of them should have a legend. The problem is that this legend not always have to be in the same place, because some plots can override the legend box. I'm wondering if there exist a command that "optimally" allocate the legend position, I'm refer to a MATLAB's command'slegend and it's option "Best". Exist? What
2009 Oct 12
1
Position of legend box
Good morning to you. I have about 4 different lines in one plot. I have used legend to indicate the colour of each plot. But the box contain the legend covers part of the lines thereby blurring the legend. There are some spaces in the plot that are empty and large enough to accommodate the legend box. If there a command I could use to set the position of the legend myself. I added the legend
2007 Feb 16
2
R implementations of scatterplot/map labeling algorithims?
Dear R community In a current paper, I'm (briefly) considering the topic of producing scatterplots or maps with point labels positioned in such a way as to minimize label overlap and occlusion. This is a topic with a large, but scattered literature. In CS, it is considered NP-hard, but there are a variety of approximate solutions. The most complete bibliography I've found is the
2008 Jul 16
2
Labelling curves on graphs
Hi Folks, I'd be grateful for good suggestions about the following. I'm plotting a family of (X,Y) curves (for different levels of another variable, Z): say 6 curves in all but could be more or less -- it's a rather variables situation. I'd like to label each curve with the value of Z that it corresponds to. The problem is that the layout (shapes, spacings, ranges of X over
2003 Apr 24
1
"Missing links": Hmisc and Design docs
...text html latex example missing link(s): crosstabs deff text html latex example missing link(s): bootcov robcov impute text html latex example missing link(s): na.include labcurve text html latex example missing link(s): key mtitle text html latex example missing link(s): pstamp panel.bpplot text html latex example missing link(s): trellis plsmo...
2008 Jul 08
6
Automatic placement of Legends
Dear R-Users, I am looking for a way to get legends placed automagically in an empty spot on a graph. Additional complication comes through my useage of multiple graphs on the same plot through mfrow. Is there a way to achieve this in R ? I have legends for each of the sub-plots. Many thanks in advance, Tolga Generally, this communication is for informational purposes only and it is not
2010 May 05
0
R-help Digest, Vol 87, Issue 5
...Joseph, > > How about this? > > matplot(cbind(m0, m1, m3, m4), type = 'l', lty = 1) > legend('topright', paste('m', c(0, 1, 3, 4), sep = ""), lty = 1, col = 1:4) > > See ?matplot and ?legend for details. > > HTH, > Jorge Also see the labcurve function in the Hmisc package, which will draw curves and label them where they are most separated. Frank > > > On Mon, May 3, 2010 at 6:42 PM,<> wrote: > >> R-listers: >> >> I have searched the help files and everything I have related to R graphics. >>...