Displaying 10 results from an estimated 10 matches for "kosenkov".
2003 May 08
2
border of bars in lattice barchart
Hello!
How to change a color (or linewidth) of
border in lattice 'barchart'?
I am trying
barchart(
(......) - my arguments
panel=function(x,y,color,subscripts,groups,...)
{
panel.barchart(x=x,y=y,box.ratio=2,col=color,border=FALSE)
}))
or
...
panel.barchart(x=x,y=y,box.ratio=2,col=color,border='transparent')
...
or
2003 Jul 31
1
help with tapply and weighted.mean
Hello!
I have data frame with 'weights' in one of the columns. I need to
compute weighted mean on another column other factor variable and
i am trying to:
res<-tapply(data$k,list(data$model),weighted.mean,w=data$w,na.rm=T)
and i get:
Warning messages:
1: longer object length
is not a multiple of shorter object length in: x * w
2: longer object length
is not a multiple of shorter
2003 May 14
2
how to include 'NA's in xtabs?
Hello!
I have a dataset with NA's in some variables (factors), for example:
$ P67 : Factor w/ 2 levels "-","+": NA 2 1 NA NA 2 1 1 2 NA ...
I need to use 'xtabs' like
xtabs(~x$P67)
It works well and produces something like this:
x$P67
- +
779 1318
but i want to compute NA's too, like this:
x$P67
- + NA
779 1318 137
I am trying
2002 Oct 30
1
help needed. Why R does not produce lattice graphics when running command 'source (file_name)'?
Hi!
I have a source file - for example 'my.R' - which uses some functions from
'lattice' library.
It looks like that:
library(lattice)
pr<-xtabs(W~ff$'q1'+ff$'q2',data=ff)
pr<-pr/rowSums(pr)*100
pr<-as.data.frame(pr)
barchart(pr[[2]]~pr[[3]]|pr[[1]], horizontal=TRUE, as.table=TRUE,
xlab=NULL, ylab=NULL, col="plum",
2003 May 06
1
pointsize - what is wrong?
Hello!
When I am trying to produce plot with text with pointsize 30 or
greater R sets up a default pointsize of 12 on plot.
I need to set up a large pointsize to make large jpeg or
png files (with good resolution).
I can write text on plot with pointsizes 18,20,22, but i cant
write text with pointsizes 25,26 and greater and i can not
understand - why? Is there are any restrictions in R? Or what?
2003 May 08
1
function to compute entropy
Maybe its slightly off-topic, but can anybody
help with computing entropy on matrix of probabilities?
Guess we have a matrix of probabilites, A, 2x2, something
like this:
z
x 0 1 2 3 4
0 0.063 0.018 0.019 0.016 0.000
1 0.011 0.162 0.040 0.042 0.003
2 0.015 0.030 0.164 0.033 0.002
3 0.012 0.035 0.036 0.159 0.002
4 0.004 0.021 0.018 0.013 0.082
sum(A)=1
Can i
2003 May 17
1
how to handle 'multiresponse' variable?
Hello!
I have dataset where one variable is 'multiresponse', like this:
[1] "1 2" "1 2 3" "4" "1 4" "4 3" etc.
'responses' separated by space. observations in different 'rows'
of data.frame.
I can do strsplit(data$var,' ') and make a list, where multiple
responses are elements of character vectors, like this:
$
2003 Jun 05
1
question about POSIXct conversion
Hello!
I am trying to compute minimal time on some data like this:
mt<-tapply(mrsh$time1,list(mrsh$var1,mrsh$var2),min):
a b
145 1054800600 1054789800
340 1054804500 1054794600
349 1054820400 1054792800
55 1054800600 1054789200
57 1054814100 1054791000
78 1054822200 1054790400
843
2002 Mar 11
0
Samba over PPP (Linux dials up NT 4 Workstation, which is in secu re NT network)
Base data:
* 1 PC running Linux (Debian), with Ethernet adapter connected to Internet
* 1 PC running NT 4 Workstation, with Ethernet adapter connected to a network with NT domain and high security. You have no rigths to setup the domain controller anyhow. There is a DHCP server in the network
* 1 serial 9pin cable
Task:
Connect Linux to NT with the serial cable, in order to access local disks
2002 Oct 13
2
HOW to resize existing graphics window??
Sorry for newbie question, but i havent find the way to
resize existing graphics window from r console. Of course,
i can do it by dragging window borders and i can
set up size of the device (window) if i call
windows(width,height)
but is it really impossible to resize existing window??
how i can do this?
i am using R 1.6.0 on Microsoft Windows 2000 OS
Thanks for your help