Displaying 20 results from an estimated 1000 matches similar to: ""too many arguments" error"
2010 Feb 24
6
R error- "more columns than column names"
Hi all! I am desperately trying to figure out the solution to this error, but
nothing as of yet is working.
As noted in an earlier post I am using GenABEL. In an attempt to read in
the phenotype file, in the format .dat, R keeps giving me the error "more
columns than column names"
I have tried to read in the data without the headers; I have also tried to
trim the data to remove any
2006 Apr 28
6
Emphasis or Italic?
What's the difference between:
<em>emphasis</em> and <i>italicized</i>
and
<strong>strong</strong> and <b>bold</b>
It seems to subtle for my browsers.
The only "difference" I've been able to find is that according to the
O'Reilly book <strong> and <emphasis> are semantic tags, while <b> and <i>
2006 Mar 10
2
Plot.date and legends
Hi:
I'm trying to plot dates on the x-axis of a code, but the legend is not being
displayed. I receive the following error:
Error in match.arg(x, c("bottomright", "bottom", "bottomleft", "left", :
'arg' should be one of bottomright, bottom, bottomleft, left,
topleft, top, topright, right, center
In addition: Warning message:
longer
2007 Mar 22
2
quick legend() question
Hi
I have a scatterplot of points with pch=1 and a single point with
pch=3, lwd=3.
It has a high line width to attract attention to it.
The following script
plot(rnorm(10),rnorm(10),col="black")
points(rnorm(10),rnorm(10),col="red")
points(0,0,pch=3,lwd=3)
if(TRUE){
legend("bottomleft",c("a","b","Truth"),pch=c(1,1,3),col=c
2011 Jul 13
1
Smart legend ???
Hi, all:
Is there an automatic smart legend for R?
Since my R code is running in a row, which will produce a bunch of R plots
in a single run, some of the produced plots are really "ridiculous".
Because my legend is fixed to "topleft", sometimes, which occludes the key
parts of the figure/plots, but most of the time, the legend works just fine.
I'm wondering is there a
2009 Feb 17
1
plot.lm: "Cook's distance" label can overplot point labels
The following code demonstrates an annoyance with plot.lm():
library(DAAGxtras)
x11(width=3.75, height=4)
nihills.lm <- lm(log(time) ~ log(dist) + log(climb), data = nihills)
plot(nihills.lm, which=5)
OR try the following
xy <- data.frame(x=c(3,1:5), y=c(-2, 1:5))
plot(lm(y ~ x, data=xy), which=5)
The "Cook's distance" text overplots the label for the point with the
2008 Jun 12
2
Wine 1.0 release date to clash with Firefox 3
According to http://wiki.winehq.org/WineReleasePlan the new release date for Wine 1.0 is set to June 17.
However the Firefox 3.0 release date is also set to June 17.
http://developer.mozilla.org/devnews/index.php/2008/06/11/coming-tuesday-june-17th-firefox-3/
Their release is planned to be high profile and they even plan to set a Guinness world record for downloads in a single day!
2012 Sep 14
2
calculate within-day correlations
useRs,
Here is some R-ready data for my question to follow. Of course this data is
small snippet from a much larger dataset that is about a decade long.
Q<-read.table(textConnection("2002 3 28 15 77.38815
2002 3 28 30 77.09505
2002 3 28 45 76.80196
2002 3 28 60 76.50887
2002 3 28 75 76.50887
2002 3 28 90 76.50887
2002 3 28 105
2008 Aug 06
1
bug submitting bug? [Fwd: Undelivered Mail Returned to Sender]
(A) I received the following bounced message when I tried to submit a
bug from http://bugs.r-project.org/cgi-bin/R
(B) The bug report itself is at the bottom.
Thanks,
Chris
(A)
-------- Original Message --------
Subject: Undelivered Mail Returned to Sender
Date: Wed, 6 Aug 2008 17:08:02 +0200 (CEST)
From: MAILER-DAEMON at pubhealth.ku.dk (Mail Delivery System)
To: candrews at buffalo.edu
2019 Mar 06
0
as.Date(Inf) displays as 'NA' but is actually 'Inf'
On Tue, Mar 5, 2019 at 9:54 PM Richard White <w at rwhite.no> wrote:
> Hi Gabriel,
>
> The point is that it *visually* displays as NA, but is.na() still
> responds as FALSE.
>
> When I (and I am sure many people) see an NA, we then use is.na(). If we
> see Inf displayed, we then use is.infinite(). With as.Date() this breaks
> down.
>
> I'm not arguing that
2009 Mar 01
0
Wishlist for plot.lm() (PR#13560)
Full_Name: John Maindonald
Version: R-2.8.1
OS: MacOS X 10.5.6
Submission from: (NULL) (203.173.3.75)
The following code demonstrates an annoyance with plot.lm():
library(DAAGxtras)
x11(width=3.75, height=4)
nihills.lm <- lm(log(time) ~ log(dist) + log(climb), data = nihills)
plot(nihills.lm, which=5)
OR try the following
xy <- data.frame(x=c(3,1:5), y=c(-2, 1:5))
plot(lm(y ~ x,
2012 Jan 19
1
Legend problem in line charts
Hi all,
Small problem in generating the line charts.
Question: Legend for the first graph is coming wrong., for second graph correctly. Please fix the legend postion at the down of graph.
Plesae give me the solution.
Thank you
Devarayalu
Orange1 <- structure(list(REFID = c(7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8,
8, 8, 8, 8, 9, 9, 9, 9), ARM = c(1, 1, 1, 1, 2, 2, 2, 2, 1, 1,
1, 1, 2, 2, 2,
2019 Mar 06
2
as.Date(Inf) displays as 'NA' but is actually 'Inf'
Hi Gabriel,
The point is that it *visually* displays as NA, but is.na() still
responds as FALSE.
When I (and I am sure many people) see an NA, we then use is.na(). If we
see Inf displayed, we then use is.infinite(). With as.Date() this breaks
down.
I'm not arguing that as.Date(Inf) should be coerced to NA. I'm arguing
that as.Date(Inf) should be *visually* displayed as Inf (i.e. the
2008 Dec 22
0
Align legend title
Dear R developers,
I needed to align the title of legend for some of my plots. If there is interest to include
this into base R, bellow are the examples and the relevent diffs.
Regards, Gregor
x <- 1:10
y1 <- 1.5 * x
y2 <- 2.0 * x
y <- cbind(y1, y2)
source(file=url("http://gregor.gorjanc.googlepages.com/legend.R"))
matplot(x, y, type="l", lty=c(1, 2))
##
2010 Sep 22
1
legend
Hi,
there is a function to plot survival curves:
library(survival)
plot.KM <- function(survival, x, x_cut.off, main='', label='')
{
plot(survfit(survival ~ I(x >= x_cut.off)), main=main)
legend('bottomleft', c(expression(label >= x_cut.off),expression(label <
x_cut.off)))
}
Now, I need to determine as the argument what appears in the legend. I want
2006 Apr 30
1
lean your head to the right
jelks said:
> What a dumb idea. You should
> lean your head to the right about 20 degrees,
> to simulate the text.
that should be "stage-right", right?,
so your listener will hear it right?
-bowerbird
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Aug 11
1
legend position in interaction.plot
How do I move the legend from default position (right and within the plot)?to the "bottomleft" of the plot?
?
interaction.plot(YEAR, ID?GROWTH, legend=TRUE, col = 2:7,xlab="Year",
?????? ylim=c(0,2), ylab="Growth",leg.bty = "o")
Peter Maclean
Department of Economics
UDSM
2008 Jul 02
1
Multiple time series plots
Hi all:
I'm trying to plot two time series created in Rmetrics and label the
x-axis with dates. I tried the following:
dates <- as.Date(seriesPositions(x.agg))
r <- as.Date(range(dates))
ts.plot(x.agg@Data[,c(1,5)],gpars=list(ylab="Volume",
lty=c(1:2),xaxt="n",main="Plot of Volume"))
axis.Date(1, at=seq(r[1], r[2], length.out=10),
2010 Oct 30
1
two group cox model
Dear all,
I am doing
library(survival)
fit <- coxph(Surv(futime,fustat) ~ rx, ovarian)
plot(survfit(fit,newdata=ovarian),col=c(1,2))
legend("bottomleft", legend=c("rx = 0", "rx = 1"),
lty=c(1,2),col=c(1,2))
Is this correct to compare these two groups? Is the 0.31 the p-value that
the median f two groups are equal
Why lty does not work here?
Many thanks
2024 Feb 05
1
ggarrange & legend
Dear R community
It is possible to adjust the legend in combined ggplots using ggarrange with
be positions top, bottom, left and right.
My question: Is there a function to change the position of the legend to
topright or bottomleft? Right and top etc are in the middle of the axis.
Kind regards
Sibylle