Displaying 20 results from an estimated 7000 matches similar to: "log="xy" fails in plot.default"
1999 Mar 25
2
packages under windows installation guide?
Hi
I was trying to install a package (sgeostat) under windows but the r-faq only tells how to do it under unix.
Question:
1) is there documentation on how install a package under windows?
Thanx
bob sandefur
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info",
2012 Mar 06
1
sourcearg function is there a better way already built into R
Hi list:
I work with a lot of laboratory analytical data and I often have
inconsistent names of files and variables within those files so I wrote
this sourcearg function to facilitate handling file and variable names
as both character and R names. The source of the function is given below
sourcearg=function(arg){
su=sprintf("%s\n",arg)
sink("TMPTMPRarg")
1999 Nov 24
1
Re: R 0.90.0 for Windows rwinst fails (for me) and workaround
hi-
I downloaded r 0.90.0 for windows and ran rwinst.exe and the base package would not install for me. I had to unzip
rw0900b1.zip and r20900b2.zip manually and then do the rest of install with rwinst. Is this due to b being replaced
by b1 and b2?
Robert (Bob) L Sandefur
Principal Geostatistician
PAH
rls at pincock.com (primary)
rlsandefur at aol.com (secondary)
303 914 4467 v
393 987-8907 f
2000 Feb 28
1
sub in boxplot doesn't do subtiles
R list-
Under Windows 2000 and r 99:
I wanted a subtitle in boxplot and tried:
> boxplot((AU[ROCK==2 & AU>-1]+0.1~iz),log="y",main="Boxplot of AU by 25 M elevations",sub="aa")
And I got:
Error in sort(x) : only vectors can be sorted
In addition: Warning messages:
1: is.na() applied to non-(list or vector) in: is.na(x)
2: is.na() applied to non-(list
2001 Aug 28
2
fitting a mixture of distributions with optim and max log likelihood ?
hi
Suppose I have a mixture of 2 distributions generated by
rtwonormals <- function(npnt,m1,s1,m2,s2,p2){
rv<-vector(npnt,mode="numeric")
for( i in seq(1:npnt)){
if(runif(1,0,1)<=p2){
rv[i]<-rnorm(1,m2,s2)
}
else{
rv[i]<-rnorm(1,m1,s1)
}
}
return(rv)
}
x <- rtwonormals(50000,0,100,500,500,0.05)
#and I try to fit these with (based on thread: [R]
2000 Oct 12
2
getting a windows environment variable in r
hi-
I would like to get a value set with the dos set command (e.g. set dog=cow) in a rterm session on rterm 1011 under windows 2000. if I try in a dos window:
set dog=cow
echo %dog%
i get cow (what I want)
then i start rterm
system("echo %dog%",intern=T)
gives "%dog%"
I can of course do something like
set dog=cow
echo %dog% >jnk.rin
and then start rterm and
2000 Mar 18
1
abline(coef=c(1,1)) different behavoir to screen and postscript 1.00 under windows
hi listees-
Running windows 2000 and r 0.99 or 1.00; I get different lines on screen and print out:
> j<-read.table("jnk.rin",head=T,sep="\t")
> attach(j)
> #gives lines I want
> qqnorm(Dog,pch="o",main="Cumulative Frequency Log Dog Size",log="y",sub="Figure 2",x
=c(-3,3),ylim=c(2000,1000000))
>
2001 Sep 07
2
dxf() like bmp() or postscript()?
hi-
I have been using postscript()and contour() to do quick plots of geological
sufaces and it would be handy to be able to dump a plot as an autocad dxf
file for vector import into autocad. A search of rhelp of 99 thru 01 gave no matches for dxf. Any suggestions for a dxf or dump of a plot as vectors?
Thanx
Thanx
Robert (Bob) L Sandefur
Principal Geostatistician
Pincock Allen & Holt
2012 Oct 30
0
Error em plot.xy(xy.coords(x, y), type = type, ...) : objeto 'membros' não encontrado
Hi,
I'm trying to plot a map with the location of the stations that I am using
require(MASS)require(maps)
mapaBrasil <- read.table("BASE_BR.txt",sep="")
latlonRS <- read.csv2("coordenadas.txt",h=F,sep="")
png(filename="mapa_grupos.png",width=600,height=800)
# criating a map for RSmap(xlim=c(-80,-35),ylim=c(-45,10),
2005 Dec 31
1
xy.coords
In ?xy.coords it says:
If 'y' is missing and 'x' is a
formula: of the form 'yvar ~ xvar'. 'xvar' and 'yvar' are used as
x and y variables.
list: containing components 'x' and 'y', these are used to define
plotting coordinates.
time series: the x values are taken to be 'time(x)' and the y
2006 Jan 21
1
Bug in xy.coords() or documentation error?
Hi,
I noticed the following problem with xy.coords() in R 2.2.1-patched
(version info at the foot of this email) and R 2.3.0 unstable
(subversion no: r37123):
> xy.coords(x = matrix(1:20, ncol = 2))
Error in xy.coords(x = matrix(1:20, ncol = 2)) :
argument "y" is missing, with no default
> xy.coords(x = matrix(1:20, ncol = 2), y = NULL)
$x
[1] 1 2 3 4 5 6 7 8 9
2001 May 04
1
scoping error in xy.coords (PR#932)
Hola!
> rm(list=ls(all=TRUE))
> x <- 1:20
> y <- 1+x+rnorm(x)
> xy.coords(y ~ x,NULL)
... expected output, correct, but when called from inside lowess:
> lowess(y ~ x)
Error in xy.coords(x, y) : x and y lengths differ
> debug(xy.coords)
> lowess(y ~ x)
debugging in: xy.coords(x, y)
... long listing deleted
if (is.language(x)) {
if (inherits(x,
2009 Feb 21
1
Extracting xy from raster based on raster value
I have a raster (which I called glc), which I read
into R as a raster with "raster.create.from.file" from the raster package (R-forge). Values in glc range between 1 and 27 (whole numbers only). I'd like to extract all cells with a value of 1 to create
a new raster with only the cells that have a value of 1, or to extract
the xy values of all raster cells with a value of 1. Could you
2007 Apr 23
2
plot.xy() with type="s" and huge data (PR#9629)
The following code snippet crashes R (under Windows and Linux) for both
R-2.4.1 and R-2.5.0 RC as of yesterday:
set.seed(1)
H <- rnorm(400000)
temp <- rnorm(400000)
plot(H, temp, type='s')
# (no, it was not my idea to do something like that!)
I *guess* it is some overflow in plot.xy() which calls
.Internal(plot.xy(xy, type, pch, lty, col, bg, cex, lwd, ...))
but
2012 Apr 01
1
Error in xy.coords(x, NULL, log = log) : (list) object cannot be coerced to type 'double'
Hi there,
When I run the code below I get the error
Error in xy.coords(x, NULL, log = log) :(list) object cannot be coerced to
type 'double'
Any tips how I can resolve this?
>
> library("waveslim")
>
> vols=read.csv(file="C:/Users/ocuk/My Documents/Abs Vol.csv", header=TRUE,
> sep=",")
> x<-c(vols[,1])
> #x
> #data(ibm)
>
2007 Nov 20
1
xy.coords and log10
Is there a way to teach xy.coords, when given log="xy", or just "x"
or "y" separately, to do a decimal log10 instead of the natural log?
Cheers,
Alexy
2008 Jun 21
2
clicking on plot and recording XY coords
Dear all,
I need to run a interactive procedure where the user
will need click on the screen (over a XY plot)
and I need to record the XY coordinate which the
user clicked. Roughly I wrote a short code below.
You see that I suppose that the user will choose
four coordinates inside the region of intersection
between three segmentes. On each click, I would like to
record the position clicked in a
2011 Jul 01
0
How to filter XY pairs of inacurate gps position along track, taking into account the time index to not mix track from different days in one average track
Dear R users,
subject: How to filter XY pairs of inacurate gps position along track, taking into account the time index to not mix track from different days in one average track
or subject as: How to filter XY pairs of inacurate gps position: (latitude, longtitude)
to get estimated correct position before calculating track
i.e.
How to estimate (time series? )?
How to filter XY pairs of
2000 Nov 01
5
Performance note: Preallocating helps? and two questions
hi-
in r 1.1 on windows 2000
with length(AU) of 35833
AUcap30<-0
for(i in 1:length(AU))AUcap30[i]<-min(30,AU[i])
took over an hour on pentium II 300 mhertz (I esc'ed before it finished)
but
AUcap30<-AU
for(i in 1:length(AU))AUcap30[i]<-min(30,AU[i])
is very quick (a few seconds)
Is this performance difference common in r (ie is linux the same way)?
Are there other tricks
2000 Nov 01
5
Performance note: Preallocating helps? and two questions
hi-
in r 1.1 on windows 2000
with length(AU) of 35833
AUcap30<-0
for(i in 1:length(AU))AUcap30[i]<-min(30,AU[i])
took over an hour on pentium II 300 mhertz (I esc'ed before it finished)
but
AUcap30<-AU
for(i in 1:length(AU))AUcap30[i]<-min(30,AU[i])
is very quick (a few seconds)
Is this performance difference common in r (ie is linux the same way)?
Are there other tricks