Displaying 20 results from an estimated 2140 matches for "0,1".
Did you mean:
0,0
2001 Nov 13
1
Small change to "cut.default"
Hi everyone,
Can I suggest the following cosmetic change to cut.default (R-1.3.1), to
adjust the labels in the case that include.lowest = TRUE:
arrow:dma0jcr% diff -u cut.R my.cut.R
--- cut.R Tue Nov 13 12:28:35 2001
+++ my.cut.R Tue Nov 13 12:35:16 2001
@@ -25,6 +25,11 @@
ch.br[-nb], ",", ch.br[-1],
if(right)"]" else ")", sep='')
else paste(...
2012 Jul 02
4
how to do a graph with tree different colors??
hi
i try to do a graph of a time series which shows in red the values > -0.05,
in blue the values >0.05 and in white the values between -0.05 and 0.05
for un exemple :http://www.appinsys.com/globalwarming/enso.htm
thanks !!!!!
denisse
--
View this message in context: http://r.789695.n4.nabble.com/how-to-do-a-graph-with-tree-different-colors-tp4635206.html
Sent from...
2008 Sep 19
2
plot order in multi-panel figure
...the plot number' on a traditional graphics device?
For instance, I want to have two plots on stacked top of each other (mfrow=c(2,1)) but with underlying grid lines spanning both figures vertically. I can put the grid lines on top if I add them last:
par(mfrow=c(2,1))
plot.new()
plot.window(c(0,1),c(0,1))
for( i in 1:2) axis(i)
box(bty="L")
rect(0.2,0.2,0.5,0.5,col=8)
plot.new()
plot.window(c(0,1),c(0,1))
for( i in 1:2) axis(i)
box(bty="L")
par(mfrow=c(1,1))
plot.window(c(0,1),c(0,1))
abline(v=seq(0,1,by=0.2),lty=3)
But ideally I would like to draw the grid lines be...
2004 Mar 19
5
asp=1 and aspect ratio
Hi everyone
I want a square scatterplot with abline(0,1) going exactly through the
SW and NE corners. By "square" I mean that the plotting region is
exactly square, and that the axis limits are identical.
x <- 1:20
y <- x+rep(c(-1,1),10)
lims <- range(c(x,y))
None of the following do this:
plot(x,y) ; abline(0,1) #not sq...
2005 Oct 13
1
expand.grid problem
Hi all,
I want to make all possible combination from dataset below:
V1 <- c(0,1,2)
V2 <- c(0,1)
V3 <- c(0,1)
V4 <- c(0,1)
V5 <- c(0,1)
V6 <- c(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20)
V7 <- c(0,1,2,3,4,5,6)
V8 <- c(0,1)
V9 <- c(0,1)
V10 <- c(0,1)
V11 <- c(0,1)
V12 <- c(0,1)
V13 <- c(...
2008 Dec 04
1
xspline, graphical parameters and MAXNUMPTS
Hello,
I am having two difficulties with xspline:
1) Passing lty=2 (via ...) appears to have no effect
2) Apparently depending on the current plot axes, I may or may not
get the failure: add_point - reached MAXNUMPTS (25200)
This happens both on Linux/R 2.8.0 (details below) and Windows Vista/R
2.8.0 patched (2008-10-21 r46766)
Simplest case:
plot(c(0,1),c(0,1))
xspline(c(0,1),c(0,1)) # failure MAXNUMPTS
xspline(c(0,0.5,1),c(0,1,0),border=2,lty=2) # OK-ish, red, but no dashes
More complex case:
x <- c...
2019 Sep 01
3
vfs_shadow_copy2 not working
Hi Jeremy,
Here's the log with log level 10: https://pastebin.com/0EAuz2B8
The location of the shared folder: /pool/shadowtest
The location of the snapshots: /pool/shadowtest/.zfs/snapshot
Here are how snapshots are named:
autosnap_2019-09-01_13:29:01_daily
autosnap_2019-09-01_13:29:01_hourly
autosnap_2019-09-01_13:44:09_frequently
And t...
2019 Aug 10
2
vfs_shadow_copy2 not working
So I'm trying to get shadow copies to work with Windows clients. The snapshots are being stored at /test/.zfs/snapshot
The snapshots are being named like so:
autosnap_2019-08-10_21:00:00_frequently
autosnap_2019-08-10_21:00:00_monthly
autosnap_2019-08-10_22:00:00_hourly
This is in my smb.conf:
[test]
vfs objects = shadow_copy2
shadow:snapdir = /test/.zfs/snapshot
shadow:snapprefix = ^autosnap_
shadow:format = %Y-%m-%d_%H:%M:%S_\(frequently\)\{0,1\}\(hourly\)\{0,1...
2009 Jun 19
2
a plot of stacked boxes
...ze. The x and y scales are not
informative. I am experimenting with the rect() function and loops but I
wasn't able to generate an appealing graph.
Thanks
Osman
Here is simulated data set
group<-rep(c('a','b','c','d','e','f','g'),c(100,20,300,40,2,10,40))
outcome<-c(sample(c(0,1),100,rep=T,p=c(0.98,0.02)),
sample(c(0,1),20,rep=T,p=c(0.9,0.1)),
sample(c(0,1),300,rep=T,p=c(0.99,0.01)),
sample(c(0,1),40,rep=T,p=c(0.95,0.05)),
sample(c(0,1),2,rep=T,p=c(0.5,0.5)),
sample(c(0,1),10,rep=T,p=c(0.9,0.1)),
sample(...
2019 Feb 12
1
Sama + Windows Shadow Copies
Hello,
i installed zfs-auto-snapshot with Samba/Windows Shadow Copy. If the
share contains "path = /srv/userdata/" it runs for me. But if I use
"path = /srv/userdata/%U" I get no "Previous Versions" on my Win10 Client.
I think the problem is the variable "shadow: snapdir = .zfs/snapshot". I
tried with "shadow: snapdir = ../.zfs/snapshot" and with "shadow:
snapdir = /srv/userdata/.zfs/snapshot" but it does´t works for me.
How can I get the "Previous Versions" wit...
2008 Jul 03
2
Plotting Prediction Surface with persp()
Hi all
I have a question about correct usage of persp(). I have a simple neural
net-based XOR example, as follows:
library(nnet)
xor.data <- data.frame(cbind(expand.grid(c(0,1),c(0,1)), c(0,1,1,0)))
names(xor.data) <- c("x","y","o")
xor.nn <- nnet(o ~ x + y, data=xor.data, linout=FALSE, size=1)
# Create an (x.y) surface and predict over all points
d <- data.frame(expand.grid(seq(0,1,.1), seq(0,1,.1)))
names(d) <- c("x&quo...
2011 Jan 05
4
Match numeric vector against rows in a matrix?
Two posts in one day is not a good day...and this question seems like it should have an obvious answer:
I have a matrix where rows are unique combinations of 1's and 0's:
> combs=as.matrix(expand.grid(c(0,1),c(0,1)))
> combs
Var1 Var2
[1,] 0 0
[2,] 1 0
[3,] 0 1
[4,] 1 1
I want a single function that will give the row index containing an exact match with vector x:
> x=c(0,1)
The solution needs to be applied many times,...
2015 Nov 10
2
problema as.numeric
...rrectos, pero luego realizo str$Edad, aparecen 24, 24, 24, 5 ?. , convierto a números con b$Edad <- as.numeric(b$Edad) y los valores son 24, 24, 25 ? (valores que no son reales).
Es fácil, lo realice muchas veces pero ahora estoy confundido. ¿Alguna ayuda? Gracias
> b$Edad
[1] 5 5 5 0,5 0,5 5 5 2 9 9 9 9 9 9 9 9 9
[18] 7 7 5 16 16 0,3 2 5 5 5 5 7 7 7 4 4 4
[35] 4 13 5 5 5 0,3 0,3 0,3 6 6 7 10 10 10 3 0,9 0,9
[52] 0,9 10 8 8 8 8 3 3 3 10 10 10 1 15 15 15 3
[69] 3 2 2 8 8...
2003 Sep 12
2
Converting character to function argument
How can one transform a character string into an argument of a function
(which is not or I don't want it to be a character string)?
Example:
> expand.grid(c(1,0),c(1,0)) ## OK
Var1 Var2
1 1 1
2 0 1
3 1 0
4 0 0
> paste(rep("c(0,1)",2),collapse=',') ## to be used below
[1] "c(0,1),c(0,1)"
> ## string is the input I want, but it needs to be coerced to the correct
format
> expand.grid(paste(rep(...
2012 Jan 18
2
How do I exactly align the right hand side of "mtext" relative to a plot device? Beyond "adj".
...ardless of the
length of the added text, or the values on the x-axis.
Here's a simple example with two versions (the first three lines of each
version are identical). I would like the right end of the added text to be
the same distance from the legend in both versions.
### v1
dev.new()
plot(c(0,1),c(0,1),ylim=c(0,2))
legend("topright",c("data1","data2"),col=c(1,2),lty=1,bty="n")
mtext("text",side=3,line=-2,adj=0.8)
### v2
dev.new()
plot(c(0,1),c(0,1),ylim=c(0,2))
legend("topright",c("data1","data2"),col=c(1,2...
2001 Oct 23
2
zeros in table() output in version 1.3.1
Are the following differences in table() output
between versions 1.3.0 and 1.3.1 a feature, a bug
or a problem with my implementation?
(I am running under Solaris 2.7 SPARC, built using the
Sun C and FORTRAN compilers.)
Version 1.3.1:
> table(c(0,1),c(0,1))
1
1 1
Version 1.3.0:
> table(c(0,1),c(0,1))
0 1
0 1 0
1 0 1
-.-.-.-.-.-.-.-....
2007 Dec 17
2
regression towards the mean, AS paper November 2007
Dear friends, regression towards the mean is interesting in medical
circles, and a very recent paper (The American Statistician November
2007;61:302-307 by Krause and Pinheiro) treats it at length. An initial
example specifies (p 303):
"Consider the following example: we draw 100 samples from a bivariate
Normal distribution with X0~N(0,1), X1~N(0,1) and cov(X0,X1)=0.7, We
then calculate the p value for the null hypothesis that...
2004 Jun 10
3
Help with plotmath
There must be a simple answer. I want to plot an expression,
where the expression is held in a string variable. The "obvious"
solution along the lines of
ex<-"x^2"
plot( c(0,1), c(0,1), main=as.expression(ex) )
gives me the a title x^2 - ie doesn't treat it like an expression. I
suspect I don't understand expressions properly. For the real
problem I do need to have my expression string in a variable as it is
data-dependent.
Can someone tell me the magic w...
2010 Oct 08
2
font question on pdf device
Hi,
I wonder if this is something on my machine locally or R in general.
When I do the following:
> plot(c(0,1),c(0,1),main=expression(paste(symbol("D"),"D",sep="")))
I get a plot with a title having uppercase delta followed by "D". But in
the following
> pdf(file="deltaTest.pdf")
> plot(c(0,1),c(0,1),main=expression(paste(symbol("D"),&qu...
2017 Apr 26
2
2 patches related to silk_biquad_alt() optimization
On Tue, Apr 25, 2017 at 10:31 PM, Jean-Marc Valin <jmvalin at jmvalin.ca>
wrote:
>
> > A_Q28 is split to 2 14-bit (or 16-bit, whatever) integers, to make the
> > multiplication operation within 32-bits. NEON can do 32-bit x 32-bit =
> > 64-bit using 'int64x2_t vmull_s32(int32x2_t a, in...