Displaying 20 results from an estimated 4000 matches similar to: "ylab in time series plot (PR#2869)"
2003 Apr 30
2
ylab in plot.POSIXct
I am using R-1.7.0 and have some data which consist of one vector of
numbers and a second corresponding vector of dates belonging to the
POSIXct class. I would like to plot the numbers against the dates.
What is the best way to do this?
It almost works to just call `plot.' However if I do this while using
the `ylab' parameter I get a warning message:
parameter "ylab"
2002 Nov 14
1
X11 resources
Would it be hard to make the X11 device driver in R accept general X11
resources? In particular I would like to be able to set the title of
the graphics window when I start it up. (Note this is not the same
thing as the title of a plot but rather is the character string
visible to the window manager, and usually goes in a titlebar on top.)
For example in Splus one can do
> motif('-xrm
2001 Dec 06
1
Scheme in R
The initial authors of R said?, "...we implemented the language by
first writing an interpreter for a Scheme subset and then
progressively mutating it to resemble S." Further on in that article
they elaborated that their strategy was to create a parser that would
take expressions in S-like syntax and translate them to Scheme
S-expressions.
Does R still work that way? Can R be made to
2002 May 21
1
I() fails on objects of class POSIXct (PR#1587)
Although the documentation is somewhat sketchy, I() can be used to create
objects of class AsIs:
> I("a")
[1] "a"
attr(,"class")
[1] "AsIs" "character"
> I(4)
[1] 4
attr(,"class")
[1] "AsIs" "numeric"
> I(4 + 0i)
[1] 4+0i
attr(,"class")
[1] "AsIs" "complex"
>
This
2000 Jul 05
2
eigen function on Solaris2.6 (PR#595)
Full_Name: Sharon Kuhlmann
Version: 0.99
OS: solaris2.6
Submission from: (NULL) (129.16.167.231)
When I use the function > eigen(x), it gives me a "Process R bus error",
and the program quits.
I'm running the following R version:
platform sparc-sun-solaris2.6
arch sparc
os solaris2.6
system sparc, solaris2.6
status Patched
2000 Oct 02
9
the underscore ("_") in variable name
At 14:35 02/10/00 +0800, mohd zamri wrote:
>new to R and starting to learn to program R. The underscore ("_") did some
>suprising result. e.g
>
>> c <- c(1,2,3,4,5)
>> mean(c)
>[1] 3
>> c_mean <- mean(c)
>> c
>[1] 3
>
>having some experience in C, I thought the underscore is "always" valid in
>variable name. totally confuse
2002 Apr 30
3
rbind'ing empty rows in dataframes in 1.4.1 versus 1.5.0
Hi,
In 1.4.1, I was able to create extra "empty" rows in a dataframe as so:
> x <- data.frame(a = letters[1:3], b = 1:3)
> x
a b
1 a 1
2 b 2
3 c 3
> x[4,]
a b
NA NA NA
> rbind(x, x[4,])
a b
1 a 1
2 b 2
3 c 3
NA NA NA
> R.version
_
platform sparc-sun-solaris2.6
arch sparc
os solaris2.6
2000 Jan 11
1
Figure margins too large
I seem to remember an error like this being mentioned before, but if it wasn't:
> zz <- density(rnorm(100))
> plot(zz)
Error in plot.new() : Figure margins too large
> version
_
platform sparc-sun-solaris2.6
arch sparc
os solaris2.6
system sparc, solaris2.6
status
major 0
minor 90.1
year 1999
month December
day 15
language R
Paul Gilbert
2002 May 11
1
vector(NA, 3) (PR#1541)
I don't seem to be able to initialize a vector of NAs. I hope this is a
bug and not a new feature (I realize I have not paid much attention to a
lot of recent discussion about NA):
platform sparc-sun-solaris2.6
arch sparc
os solaris2.6
system sparc, solaris2.6
status
major 1
minor 5.0
year
2000 Jun 19
2
fortran compile problem with R-1.1.0
Hello List,
Knowing I would eventually need to ask for help on the list, I've held
off my thanks and congratulations on the 1.+ releases of R. I am amazed
at the dedication of the R-core team, and do add my applause and thanks.
I've had a compile problem with the latest version which has not
occurred before. I'm compiling under:
platform sparc-sun-solaris2.6
arch sparc
2000 Dec 20
1
dev.ask
I was surprised not to find dev.ask when I looked for it. Is there an
alternative method of holding plots before going on to the next one?
> R.version
_
platform sparc-sun-solaris2.6
arch sparc
os solaris2.6
system sparc, solaris2.6
status
major 1
minor 1.1
year
2001 Jul 24
1
strptime and "impossible" dates
Typically, when I use strptime with "impossible" dates I get an NA, which is
what I expect.
> version
_
platform sparc-sun-solaris2.6
arch sparc
os solaris2.6
system sparc, solaris2.6
status
major 1
minor 3.0
year 2001
month 06
2002 Apr 18
1
grid lines outside plot region in version R1.4.1
Hello everybody,
if I'm using par(xpd=NA) gridlines will plotted outside the plotting region. This is "new" (and, in my
opinion, unaesthetic) in version 1.4 - compared to version 1.3. Is this a bug or a feature?
Example:
------------------
par(xpd=NA)
plot(1:11)
grid()
------------------
platform sparc-sun-solaris2.6
arch sparc
os solaris2.6
2000 Mar 27
1
R port of acepack
To whom should bug reports of the R port of acepack be directed?
On a SPARC/Solaris 2.6 or 2.7 (SunOS 5.6 or 5.7) system running
R-1.0.0 the avas example fails
> library(acepack)
> example(avas)
avas> TWOPI <- 8 * atan(1)
avas> x <- runif(200, 0, TWOPI)
avas> y <- exp(sin(x) + rnorm(200)/2)
avas> a <- avas(x, y)
Process R bus error (core dumped) at Mon
2003 Mar 05
1
printing POSIXct values in table labels
Hi,
I think that there is something that I am misunderstanding in creating tables
using dates that are of class POSIXct. Consider:
> x <- data.frame(date = as.POSIXct(strptime(c(rep("2002-10-17", 4), rep("1999-12-08", 2)), format = "%Y-%m-%d")))
> x
date
1 2002-10-17
2 2002-10-17
3 2002-10-17
4 2002-10-17
5 1999-12-08
6 1999-12-08
> table(x$date)
2002 Aug 15
1
order(1, na.last=NA) fails (PR#1913)
R> order(1, na.last=NA)
Error in apply(sapply(z, is.na), 1, any) :
dim(X) must have a positive length
This bug appears unrelated to PR#1906, and so the fix of 8/15 doesn't help.
It comes from the line inside order():
ok <- !apply(sapply(z, is.na), 1, any)
where z=list(1) in my example. sapply() returns a single-element vector, not a
matrix, making apply() unhappy. This might
2000 Dec 04
1
Bug in plot.formula (PR#757)
Here's a simple example:
> x <- rnorm(20)
> y <- 1 + 10*x + rnorm(20)
> plot(y ~ x, subset=2*(1:10),xlab="In",ylab="Out")
Error in length(x) == l : comparison (1) is possible only for vector types
The problem seems to be in this section of the code for plot.formula:
if (!missing(subset)) {
s <- eval(m$subset, data, parent.frame())
l
1999 Jul 09
4
core dump on 0.64.2 SPARC/Solaris 2.6 in eigen (PR#223)
..
R is now configured for sparc-sun-solaris2.6
Source directory: .
Installation directory: /unsup/R-0.64.2
C compiler: gcc -g -O2
FORTRAN compiler: g77 -O2
Gnome support: no
$ gcc --version
egcs-2.91.66
$ g77 --version
GNU Fortran 0.5.24-19981002
"make check" later fails. The failure is in the test of the eigen()
function. The
2001 Sep 26
1
Characters vectors, NA's and "" in merges
I often use merge with dataframes that contain character vectors which have
elements that are sometimes "NA" (meaning the string NA, not the same thing,
obviously, as NA in a numeric or factor vector). For example, the stock ticker
for Nabisco was "NA". Unfortunately (for me), it seems like merge insists on
inserting "NA" for missing values. My question: Is there some
2000 Dec 05
1
Inconsistency, possibly a bug? (PR#758)
Seems to be a day for finding peculiar little things. There is an
inconsistency in the behavior of lm vis a vis glm:
> x <- rnorm(15)
> y <- 1 + 10*x + rnorm(15)
> z <- as.factor(rep(c("A","B","C"),rep(5,3)))
> xyz <- data.frame(x,y,z)
> fit.lm <- lm(y ~ x + z, data=xyz, subset=(z != "C"))
> fit.glm <- glm(y ~ x +