Displaying 20 results from an estimated 200 matches similar to: "Labelling certain points on the x-axis"
2008 Jul 08
1
shading an area in a edf
Hi,
I've got the following edf:
***
x = c(1.6,1.8,2.4,2.7,2.9,3.3,3.4,3.4,4,5.2)
F2.5 <- ecdf(x)
plot(F2.5,
verticals= TRUE,
do.p = TRUE,
lwd=3,
ylab = "",
xlab = "",
xlim = c(1,5.5))
abline(h= (0:5)*0.2)
#mean
abline(v=mean(x), lwd=2)
mtext(text=expression(bar(x) == 3.07), side=1, adj=0.462, padj=3, cex=1)
***
Now I would like to
2007 Sep 25
2
Adjust barplot to the left
Hello,
I have the following problem: I created an ecdf and a barplot. Unfortunatly,
the bars are not where I would like them to be (please see picture below).
http://www.nabble.com/file/p12877530/problem.gif
That's my code:
#------------------------
par(mfrow=c(2,1), mar=c(2,3,3,2))
#ECDF
x = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2)
F2.5 <- ecdf(x)
plot(F2.5,
2007 Aug 21
2
Partial comparison in string vector
Hi list members
I have a vector of strings
x=c("w","ex","ee")
And I want to get a logical vector showing the positions where my search
string "e" matches the elements partially, i.e. is at least the left-hand
part of the target strings, i.e. I want to get a vector FALSE TRUE TRUE.
Any ideas?
Thanks
Steve Powell
proMENTE social research
research |
2007 Jul 19
2
(R) Using arguments for the empirical cumulative distribution function
Hi,
I have just started using R. Now I have the following problem:
I want to create an Empirical Cumulative Distribution Function and I only
came so far:
F10 <- ecdf(x)
plot(F10, verticals= TRUE, do.p = TRUE, lwd=3)
x=c(1.6,1.8,2.4,2.7,2.9,3.3,3.4,3.4,4,5.2)
Now I'd like to use arguments such as xlabs and main but I don't know how to
integrate them.
I hope someone can help me, I am
2007 Aug 24
3
changing text direction of mtext
Hello,
Does anyone know if it's possible to change the text direction of mtext?
I'd like to use 'mtext(side=2)' but the text should be 'left-to-right'.
I couldn't find an argument for that in the help files.
Thanks for any suggestions
Tobias
--
View this message in context: http://www.nabble.com/changing-text-direction-of-mtext-tf4321931.html#a12307342
Sent from
2004 Jul 05
4
density(x)
Dear experts,
when trying to estimate an kernel density function with density(x) I get the following
error message with imported data from either EXCEL or text files:
Error in density(spr) : argument must be numeric.
Other procedues such as truehist work. If I generate data within R density works fine.
Does anybody have an idea?
Yours
--
Christoph Hanck
Wissenschaftliche Hilfskraft
2003 Sep 20
2
Logit and Probit for Panel data
Dear R users/experts,
I've heard it's possible to estimate the above kinds of models in R. However, after (an admittedly brief) survey of the packages, I haven't found an obvious candidate. Can you offer any help? (Yes I'm a newby.)
Yours sincerely
Christoph Hanck
Studentische Hilkskraft
Lehrstuhl f?r Empirische Wirtschaftsforschung, Prof. Dr. Wilfling
2006 May 29
2
parameter-restrictions in OPTIM
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt.
Name: nicht verf?gbar
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20060529/2d606d35/attachment.pl
2005 Feb 24
1
zeichnung eines wahrscheinlichkeitsnetztes
ich hätte ein problem: im rahmen meiner projektarbeit stehe ich vor der aufgabe, einen beliebigen datensatzt einzulesen, die empirische verteilungsfunktion des datensatztes zu zeichnen, aber das ganze so, dass die y-achse nach der quantilsfunktion der exponetialverteilung mit parameter=1 transformiert werden soll!
leider steh ich da jetzt wirklich an!
würde mich serh freuen, wenn mir jemand
2000 Dec 17
1
AW: Permutations
Niels Waller wrote:
> Does anyone know of an R (or S-PLUS) function for delineating all possible
> combinations and permutations?
The following function delivers all permutations of 1:n.
all.perm <- function(n) {
p <- matrix(1, ncol = 1)
for (i in 2:n) {
p <- pp <- cbind(p, i)
v <- c(1:i, 1:(i - 1))
for (j in 2:i) {
v <- v[-1]
2001 Sep 25
1
Bug in boxplot.stats?
Is this a bug?
>"xx" <- c(50, 79, 120, 78, 90, 100, 78, 80,
+ 90, 80, 60, 39, 90, 85, 140, 100, 80, 80)
> boxplot.stats(xx)$stats
[1] 60 78 80 90 100
> boxplot.stats(0.1*xx)$stats
[1] 7.8 7.8 8.0 9.0 10.0
I suppose the way the numbers in 0.1*xx are internally stored may
cause this problem:
> formatC(0.1*xx[2],format="f",digits=16)
[1]
2001 Oct 05
3
3dim histogram?
Hello all,
I wonder if there is a package including a program to display a 3dim
histogram.
Thanks.
--- D.Trenkler ---
****************************************************************************
*****
Dr. Dietrich Trenkler (dtrenkler at nts6.oec.uni-osnabrueck.de)
Statistik / Empirische Wirtschaftsforschung
Universitaet Osnabrueck
Rolandstrasse 8
2007 Aug 20
3
Subscript
I have the following code:
mtext(text="X[1]")
How can I change "[1]" to be subscript? (see picture below)
http://www.nabble.com/file/p12241351/subscript.gif subscript.gif
Thanks for any help
Tobias
--
View this message in context: http://www.nabble.com/Subscript-tf4300665.html#a12241351
Sent from the R help mailing list archive at Nabble.com.
2007 Oct 01
1
how to create this graph?
Hello,
I'm trying to create the following graph:
http://www.nabble.com/file/p12974686/bar.gif
Is there a command (like pie(...) or barplot(...)) or is this just a special
case of eg barplot?
I'd be glad if someone could give me a hint on where to start.
Regards,
Tobias
--
View this message in context: http://www.nabble.com/how-to-create-this-graph--tf4546742.html#a12974686
Sent from
2000 Mar 14
2
Bug in sub? (PR#487)
I suspect that there is bug in sub when using "?":
> string_"This is a bug!"
> sub("!", ", or isn't it?", string)
[1] "This is a bug, or isn't it?"
> string_"This is a bug?"
> sub("?", ", or isn't it?", string)
[1] "This is a bug?"
Regards,
*** D.Trenkler ***
2000 Mar 07
2
AW: anova-bug in R-version 1.0.0? (PR#470)
I think I've discovered what went wrong.
My workspace included a function wilcox.test formerly copied from
ctest. Now ctest ist part of the distribution and because of that I
always got the message:
[Previously saved workspace restored]
Error in autoload("wilcox.test", "ctest") :
Object already exists
I didn't take care of this message. Now I removed
2001 Nov 22
1
Bug in dev.print? (PR#1179)
Dear "Debuggers",
please have look a the following:
> plot(0:1,0:1,type="n")
> points(c(0,0.5,1),c(0,0.5,1))
> dev.print(device = postscript, width=5 , height=5, file="test1.ps")
windows
2
># This worked
> dev.print(device = pdf, width=5 , height=5, file="test1.pdf")
windows
2
># That also
>
2023 Nov 07
1
False positives in check for lost braces (in tools::checkRd())
On Tue, 7 Nov 2023 17:13:05 +0100
Martin Becker <martin.becker at mx.uni-saarland.de> wrote:
> More specifically, a 'Lost braces' NOTE is issued (at least
> sometimes) when using the \insertRef{...}{...} command from the
> Rdpack package.
Does anything change if you use the development version of Rdpack (not
currently on CRAN)? Apparently, the latest commit performs some
2023 Nov 07
1
False positives in check for lost braces (in tools::checkRd())
This is a known issue already reported to the Rdpack maintainer. In some
cases, the Rd code generated by Rdpack's macros contains unnecessary
braces that trigger the check note because they match the pattern
"text{text}" that detects common mistakes like "code{x}" (missing an
escape for the macro name).
Rdpack's fork of tools::deparseLatex() is being updated to
2008 Jul 12
1
Error of exp() in a dll from Fortran
Hi,
I have an error happened when I use exp() in my Fortran code. My Fortran
code is
SUBROUTINE f(n,c)
REAL, INTENT(IN) :: n(10)
REAL, INTENT(OUT) :: c(10)
INTEGER :: k
DO k=1, 10
c(k) = exp( n(k) )
END DO
END
I compiled the fortran code as a dll
Rcmd SHLIB -o f.dll f.f -L -lacml
Then I loaded the dll file to R, and try some number
>