Displaying 20 results from an estimated 4000 matches similar to: "'modifyList' drops (not adds) NULL components"
2003 Aug 15
6
plot.lm mislabels points with na.exclude (PR#3750)
R 1.7.1 on Windows XP
The "normal Q-Q plot" produced by plot.lm() mislabels points
when the model is fitted using na.action=na.exclude. Example:
x <- 1:50
y <- x + rnorm(50)
y[c(5,10,15)] <- NA # insert some NA's
y[40] <- 50 # add an outlier
plot(lm(y ~ x, na.action=na.omit)) # outlier correctly labeled in all
# four plots
2003 Jul 21
2
Bug in file.copy: overwrite=FALSE ignored (PR#3529)
I am using R 1.7.1 on Windows XP Pro.
The 'overwrite=FALSE' argument appears to be ignored in
file.copy():
> file.exists(c("file1.txt", "file2.txt"))
[1] TRUE TRUE
> file.copy(from="file2.txt", to="file1.txt", overwrite=FALSE)
[1] TRUE
>
and sure enough, file1.txt has been overwritten.
Rich Raubertas
Biometrics Research, RY33-300
Merck
2002 Apr 23
2
Bug in read.table() (PR#1477)
The following command,
temp <- read.table("c:/rfr/r/test.txt")
reads the text file "test.txt", which contains the following lines:
21437
21438
21419-2
21420-2
21421-2
21422-2
and produces the following result:
> temp
V1
1 21437+0i
2 21438+0i
3 0+0i
4 0+0i
5 0+0i
6 0+0i
>
These "numbers" are actually sample ID's, and I
2018 Sep 11
1
var() with 0-length vector -- docs inconsistent with result
R 3.5.1 on Windows 7
The documentation for 'var' says: "These functions return 'NA' when there is only one observation (whereas S-PLUS has been returning 'NaN'), and fail if 'x' has length zero." The function 'sd' (based on 'var') has similar documentation.
However, I get:
var(numeric(0))
[1] NA
rather than an error.
Personally I
2003 Jan 13
2
Bug in boxplot(..., add=TRUE) ?
R 1.6.1 on Windows NT4:
The boxplot() function appears to draw its own tick marks
and axis values even when called with add=TRUE. As a toy
example, try
x <- rnorm(100)
f <- factor(rep(1:4, each=25))
plot(c(0,4), c(-3,3), type="n", xaxt="n", yaxt="n")
boxplot(x ~ f, add=TRUE)
My expectation is that a high-level plotting function will
not mess with the axes
2017 Sep 11
2
Σχετ: show 0 at y axis in xyplot lattice
Dear Bert and all,
I am really sorry. This is the full code:
dat<-read.csv("example.csv")attach(dat)
sdate<-as.Date(Date, format="%Y-%m-%d")
#change the colour of the strip background
my.settings <- canonical.theme(color=FALSE)
my.settings[['strip.background']]$col <- "blue"
dat_key <- list(space="right",
??????????????? lines =
2017 Sep 11
0
show 0 at y axis in xyplot lattice
1. Not reproducible since my.settings, dat_key, sdate not provided.
2. Why did you not try something like ylim = c(-5,80) ?
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, Sep 11, 2017 at 12:33 PM, Maria Lathouri via
2017 Sep 11
0
show 0 at y axis in xyplot lattice
Not reproducible, as we have neither "example.csv" nor "Date" .
Cheers,
Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Mon, Sep 11, 2017 at 2:38 PM, Maria Lathouri <mlathouri at yahoo.gr> wrote:
> Dear
2017 Sep 11
4
show 0 at y axis in xyplot lattice
Dear all
I am trying to make a plot in xyplot lattice by groups. I would like to show "0" in y axis but I don't want to be aligned with the x axis. I want to be a little bit above.
I have tried many options but I don't get what I want. I also tried ylim=c(0, 80) but both 0 and 80 are fully aligned with the x-axis and the upper boundary of the plot, respectively:
xyplot(upper.zn +
2017 Sep 12
0
show 0 at y axis in xyplot lattice
Hi Maria
Rule 1 make sure your data is in the right format
dat <- source("G:/1/savedat.txt")
> dat
$value
Location Date Zn2 upper.zn lower.zn
1 upstream 2016-04-27 29.92477 55.59800 13.912207
2 spill 2016-04-27 12.84040 22.07006 6.964934
3 downstream 2016-04-27 22.49673 41.60901 11.739109
4 upstream 2016-06-28 23.98425 45.60219 10.690640
5
2017 Sep 12
2
Σχετ: show 0 at y axis in xyplot lattice
Dear all,
Thank you very much for the help. ylim=c(-5, 80) worked.?
Regarding the reproducible example, I used dput () and saved the file as txt. It is not the first time that I used this way and normally it works. Because when I try to attach a .csv file with the data, most of the time it doesn't go through.?
I will know for the next time.?
Many thanks.
Regards,Maria
???? 2:11 ?.?.
2017 Sep 12
0
Σχετ: show 0 at y axis in xyplot lattice
Dear Maria
The file you attached to your first e-mail did come through but I think
some people on the list must have missed it.
Michael
On 12/09/2017 12:54, Maria Lathouri via R-help wrote:
> Dear all,
> Thank you very much for the help. ylim=c(-5, 80) worked.
> Regarding the reproducible example, I used dput () and saved the file as txt. It is not the first time that I used this way
2004 Aug 16
1
Dotplot with nested factors
I am using the dotplot function from the lattice package to
display a quantitative variable versus two factors, say 'a' and
'b'. The levels of 'a' are nested within levels of 'b'. The
issue is that dotplot includes all the levels of 'a' in each panel
(conditioning on 'b'), even though many are empty in any given
panel. A toy example is
dat
2003 Jul 21
1
Inconsistent handling of character NA?
[R 1.7.1 on Windows XP Pro]
Since R allows missing values for character variables, why
are NA's not propagated by character manipulation functions?
For example:
> temp <- c("a", NA)
> temp
[1] "a" NA
> is.na(temp)
[1] FALSE TRUE
> paste(temp[1], temp[2])
[1] "a NA"
> substr(temp, 1, 1)
[1] "a" "N"
>
2012 Apr 20
1
How to make nice tiny sized figures on graphic devices producing scalable vector output?
Hello!
Usually whenever I want a tiny plot, I just create it as is (or even large) and then downscale it in the end application like LaTeX of MS Word. However, all these graphic devices like postscript, pdf, win.metafile retain physical sizes, so it would be natural if I can just insert graphics as is provided those have proper physical sizes embedded.
The question is what is the best
2009 Aug 01
3
Transparency and trellis device
Dear R-users,
I am trying to produce trellis (png, or jpeg) graphs with transparent background, but I cannot manage to make that happen. I tried to play around with themes but to no avail. Any advise on the following example will be greatly appreciated:
Thank you
Sebastien
####
library(lattice)
df <- data.frame(a=rep(1:4,4), b=rep(1:4,4), c=rep(1:4,each=4))
settings <- standard.theme()
2007 Feb 05
1
Build error with last R-devel tarball
Hi,
On Windows, with last R-devel tarball (r40647) from
ftp://ftp.stat.math.ethz.ch/Software/R/R-devel_2007-02-04.tar.gz
I get the following build error:
E:\biocbld\bbs-2.0-bioc\R\src\gnuwin32> make
...
...
---------- Making package utils ------------
adding build stamp to DESCRIPTION
installing NAMESPACE file and metadata
installing R files
Error in namespaceExport(ns, exports) :
2010 Mar 19
3
strange behavior, adds new field by non-existent field
data:
> tmp1
Date HrMn Temp Q.4
1 19450101 0900 -37.0 1
2 19450101 1000 -35.9 2
3 19450101 1100 -35.9 3
4 19450101 1200 -36.4 4
5 19450101 1300 -36.4 5
6 19450101 1400 -36.4 6
7 19450101 1500 -36.4 7
8 19450101 1600 -37.5 9
Accidentally, I did this (I meant to write Q.4 instead of Q here)
> tmp1$Q[tmp1$Q!="1" & tmp1$Q!= "5"]<-NA
I would
2011 Jul 13
1
image adds lines
There seems to be a bug in "image" in R 13.1 (on windows 32 & 64 bits) and
on R-devel that is not present in R 13.0 and before.
The below creates a plot with many white lines, horizontal and vertical,
more or less regularly spaced. The effect is particularly dramatic when the
plotting window is made very small.
image(t(volcano)[ncol(volcano):1,])
Robert Hijmans
University of
2004 Aug 25
5
Adding labels to variables
Hi,
Is it possible to add labels to variables in R (so as to have a better
description of what the variables represent)?
Thanks,
Neil