Displaying 20 results from an estimated 2000 matches similar to: "plot question"
2009 Jul 03
3
Color of ecdf plots
Hi.
I have the following two ecdf plots in one graph:
plot(
ecdf(....),
do.points=FALSE,
verticals=TRUE,
main=paste("Ecdf of distances ",DIM,sep=""),
col="red"
);
lines(
ecdf(....),
do.points=FALSE,
verticals=TRUE
);
How do I change the color of the resulting graph? Adding col="red" to either plot or lines results in an error
2009 Sep 07
1
Plot 2 ecdf in one graph
Hi r-users,
I would like to compare the cdf between historical and predicted. My x.obs and x.pre are the frequency data in classes of 0-300.
I tried:
plot(ecdf(x.obs),ecdf(x.pre),type="l",col="red")
and it gives me:
Error in plot.stepfun(x, ..., ylab = ylab, verticals = verticals, pch = pch) :
argument 4 matches multiple formal arguments
Thank you so much for any
2001 Oct 22
3
Two questions
Greetings,
I have two questions that I could not answer from the
documentation.
A - ecdf and confidence intervals : Is there a (simple) way to generate
confidence intervals (95%) for a ecdf?
B - cross-validation of rpart trees : a colleague is using S to
generate decision tree and mentioned to me the use of cross-validation. Is
this function enabled in R ? if so, how should one proceed to
2003 Jul 21
3
Confidence Band for empirical distribution function
Hi,
I was trying to draw an empirical distribution function with uniform
confidence bands. So I tried to find a way to calculate values of the
Kolmogorov-Smirnov Distribution but failed.
I guess it must be hidden somewhere (since the ks-test is implemented),
but I was unable to find it.
Is there any way to do this?
Thanks
Leif Boysen
2006 Aug 31
1
Problems with OS X R
Hi everyone,
I hope I'm not repeating someone else, but I am having trouble with
my R installation on my MacBook with OS X Universal. I get this error
when R starts up:
2006-08-30 10:53:50.222 R[1021] *** -[NSBundle load]: Error loading
code /Users/clc/Library/InputManagers/Smart Crash Reports/Smart Crash
Reports.bundle/Contents/MacOS/Smart Crash Reports for bundle /Users/
2004 Feb 02
4
for loops?
Hello R people!
How can one use a for loop (or something similar) in R? As I type in each
line, I get syntax errors... I'm just confused how much to type in at each
">" prompt.
Thanks for your help,
cathy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Catherine M. Stein
Research Assistant, Tuberculosis Research Unit
Doctoral Candidate in
2006 Jun 04
2
slanted ends of horizontal lines for certain line widths
Hello,
if I plot a horizontal line, e.g.,
plot(c(1,2),c(1,1),xlim=c(0,3),lwd=2,type="l")
or
plot(c(1,2),c(1,1),xlim=c(0,3),lwd=4,type="l")
then the left end (1st example) or both ends (2nd example) of the lines
are not rectangular but slanted on the graphical display (screen).
That behavour first occurred when I was trying to plot a stepfun, e.g.,
y <-
2004 Jan 02
2
SEM help!!!
I have just started using the SEM package in R, so I'm not sure I'm doing
everything right, but I keep getting an error concerning startvalues and I
can't figure out how to fix it. Is anyone willing to read over my code
and help me out??? Please email me if you are willing to look at my code
and I will send it to you.
Thank you so much, and Happy New Year!
cathy
2004 Jun 03
1
ecdf plots, lines, and y values
Hi,
I have a question for the group, perhaps someone can help me
figure this out. I've already looked in the help files and they were
no help to me.
I have a vector of values and I am plotting an ecdf graph.
1. How can i draw a continuous line through the ecdf points? (lines
and type for the plot with an ecdf object does not work)
2. Supposing I have this line drawn. I can add a
2002 Jul 25
1
Calling the correct one of 2 conflicting functions
Hello,
My specific system is
> version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 1
minor 5.1
year 2002
month 06
day 17
language R
Each of the hmisc and stepfun packages has a function
2004 Oct 17
3
ecdf with lots of ties is inefficient (PR#7292)
Full_Name: Martin Frith
Version: R-2.0.0
OS: linux-gnu
Submission from: (NULL) (134.160.83.73)
I have large vectors containing 100,000 to 20,000,000 numbers. However, they
only contain a few hundred *distinct* numbers (e.g. positive integers < 200).
When I do ecdf(v), it either runs out of memory, or it succeeds, but when I plot
the ecdf with postscript, the output is unnecessarily bloated
2003 Nov 17
4
cumulative distribution functions
hi y'all,
I am wondering if there is any special command, function,
package, etc to help me doing a cumulative distribution function,
with y-scale - probability scale.
I tried the help in R and i got the following answers:
cumsum(base) Cumulative Sums, Products, and Extremes
ecdf(stepfun) Empirical Cumulative Distribution Function
cpgram(ts) Plot
2012 May 04
1
Absolute cumulative curve with ecdf/stepfun?
Hi,
I have two variables ranging both from 0 to 1 (n=500 each).
Now I am interested in plotting them both in one plot (using ggplot2).
So far I used ecdf() (from an example I found with google) to get
values for the cumulatice distribution function which gives a relative
curve. I also want to do the same plot but using absolute cumulative
values instead of relative. Can that be done with ecdf or
2010 Nov 24
2
dovecot is confused about mail_location
IMAP logins via fetchmail are failing on my mailserver
root at grelber:/home/esr# tail -f /var/log/mail.err
Nov 24 16:56:48 grelber dovecot: IMAP(cathy): mail_location not set and autodetection failed: Mail storage autodetection failed with home=/home/cathy
Nov 24 16:56:48 grelber dovecot: IMAP(cathy): Fatal: Namespace initialization failed
Nov 24 16:57:39 grelber dovecot: IMAP(cathy):
2007 Nov 27
2
R graph window
Dear all,
I am using R 2.6.0 on Windows XP.
I am wondering if R can show multiple graph at the same graph window with different tabs at the bottom of the window, like in S-plus.
Does anybody have experience on this?
Thank you.
Cathy
---------------------------------
[[alternative HTML version deleted]]
2003 Aug 26
3
plot empirical pdf
Hi,
are there any function to plot the empirical probability distribution
function? I just don't want to reinvent the wheel...
Best wishes,
Ott
--
Ott Toomet
PhD Student
Dept. of Economics
?rhus University
Building 322
Universitetsparken
8000 ?rhus C
Denmark
otoomet (a) econ au dk
ph: (+45) 89 42 20 27
-------------------------------------------
(o_ (*_ (O_
2003 Apr 03
5
cdf function: inverse to quantile?
Is there a function in R for calculating empirical cumulative distribution
functions, i.e. the inverse of the quantile function? Perhaps in some
library? I''d hate to have to re-invent the wheel.
David Edwards, Biostatistics,
Novo Nordisk A/S, Bagsværd, Denmark.
DEd@novonordisk.com <mailto:DEd@novonordisk.com>
Tlf: +45 44 42 62 35. Fax: +45 44 42 14 80
[[alternate HTML version
2008 Nov 08
2
lines, ecdf and colors
Hi. I'm trying to plot two ecdf's on the same graph using two
different colors. I can plot using the same color, but it doesn't
work when I change colors? Any suggestions? Thanks in advance for
your help.
x <- c(0.80, 0.83, 1.89, 1.04, 1.45, 1.38, 1.91, 1.64, 0.73, 1.46)
y <- c(1.15, 0.88, 0.90, 0.74, 1.21)
plot(ecdf(x))
# it works without col='blue', but doesn't
2005 Nov 02
2
help with the coordinates of the ECDF object
Hi all R users
I would like to know how acess the coordinates
of the ECDF object.
I look for the example,
in this part:
######################
print(ls.Fn12 <- ls(env= environment(Fn12)))
######################
but I do not know to extract
the Y coordinate and put it in other variable.
My objective is to make a plot
and identify the points with labels.
############# Example by
2011 Sep 24
2
two ecdf in the same figure
Hello,
is ot possible to draw two ecdf of vectors (say s1 and s2) on the same
figire with R.
plot function draws a new plot and there is no function like points or lines
to draw a second ecdf on the figure.
Regards
--
*PhD candidate in Computer Science
Address
3 avenue lamine, cité ezzahra, Sousse 4000
Tunisia
tel: +216 97 246 706
fax: +216 71 391 166*
[[alternative HTML version deleted]]