search for: curve1

Displaying 3 results from an estimated 3 matches for "curve1".

Did you mean: curve
2007 Oct 19
1
unable to interactively label curves on a plot
...ng 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") From the help file, this is how I would understand it should be done, but have tried many other combinations, with no luck. Running up-to-date R, R packages and Fedora. Many thanks, Quin -- * * * * * * *Quin Wills* *DPhil candidate...
2017 Jun 20
5
fitting cosine curve
...oef(fullFit) fit <- function(x, a, b, c, d) {a*cos(b*x+c)+d} plot(x=t, y=y) curve(fit(x, a=co['A'], b=co['omega'], c=co['C'],d=co['B']), add=TRUE ,lwd=2, col="steelblue") -------------- next part -------------- A non-text attachment was scrubbed... Name: curve1.pdf Type: application/pdf Size: 29634 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20170620/a99f7d8f/attachment.pdf>
2008 Jul 07
4
Plot Mixtures of Synthetically Generated Gamma Distributions
Hi, I have the following vector which is created from 3 distinct distribution (three components) of gamma: x=c(rgamma(30,shape=.2,scale=14),rgamma(30,shape=12,scale=10),rgamma(30,shape=5,scale=6)) I want to plot the density curve of X, in a way that it shows a distinct 3 curves that represent each component. How can I do that? I tried this but doesn't work: lines(density(x)) Please