Displaying 20 results from an estimated 172 matches for "brewer".
2010 Jul 08
1
Brewer.pal error
...exit from University. I have
returned to make a phd...I´m fortunatelly I´m working so unfortunatelly I
have few time to study (I have also a baby with 16 months).
I´m trying to use R but sometimes it gets very difficult.
I´m trying to put this code in my polygon function
colramp=colorRampPalette(brewer.pal(9,"YlOrRd")
to use brever.pal I have installed this lybrary
library(“RColorBrewer”)
but when I try to run it appears this message:
Error in col2rgb(colors) : cannot find function "brewer.pal"
If you want I can attach the zip I use.
Can anyone please guide me how to mak...
2010 Aug 26
7
Find classes for each column of a data.frame
...of a
data.frame? I am in the situation where I would like to get all the
columns of a data.frame that are factors.
I have tried:
apply(df,2,class)
but all the columns come back as class "character".
Thanks
Dan
--
**************************************************************
Daniel Brewer, Ph.D.
Institute of Cancer Research
Molecular Carcinogenesis
Email: daniel.brewer at icr.ac.uk
**************************************************************
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No....
2009 Apr 06
2
Collapse data matrix with extra info separated by commas
...6
7 B 1 7
to something like this:
a b c
1 A 1 1,2
3 A 2 3,4
5 B 1 5,6,7
This seems to be the sort of the thing that the reshape library should
be able to do, but I just can't work out how to do it.
Many thanks
Dan
--
**************************************************************
Daniel Brewer, Ph.D.
Institute of Cancer Research
Molecular Carcinogenesis
Email: daniel.brewer at icr.ac.uk
**************************************************************
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No....
2005 Apr 28
1
strange behaviour of importFrom directive in name space
Dear listers,
After activating the name space for my bioconductor package (prada) I
successfully ran R CMD check. However when loading the package in R and
running the examples the imported function brewer.pal from package
RColorBrewer is not found. I can directly call brewer.pal from the
RColorBrewer name space typing RColorBrewer::brewer.pal, but it is not
imported into my prada name space. When I attach RColorBrewer, the
example runs fine. For several other function from different packages
the imp...
2005 Apr 28
1
strange behaviour of importFrom directive in name space
Dear listers,
After activating the name space for my bioconductor package (prada) I
successfully ran R CMD check. However when loading the package in R and
running the examples the imported function brewer.pal from package
RColorBrewer is not found. I can directly call brewer.pal from the
RColorBrewer name space typing RColorBrewer::brewer.pal, but it is not
imported into my prada name space. When I attach RColorBrewer, the
example runs fine. For several other function from different packages
the imp...
2007 Aug 07
11
Positioning text in top left corner of plot
...I have been fiddling
around with both text and mtext but without much luck. text is fine but
each plot has a different scale on the axis and so this makes it
problematic. What is the best way to do this?
Many thanks
Dan
--
**************************************************************
Daniel Brewer, Ph.D.
Institute of Cancer Research
Email: daniel.brewer at icr.ac.uk
**************************************************************
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Register...
2006 May 22
2
SUSE 10.1 64 bit binary
...ering if anyone had created a 64 bit binary for SUSE 10.1
x86_64 yet. Unfortunately, I upgraded before looking whether a package
was available and now cannot find a suitable package on CRAN. If noone
has produced one yet, does anyone have any idea when one will be available?
Many Thanks
Daniel Brewer
2010 Jan 26
2
heatmap.2 color range
Hi,
I'm trying to create a heatmap with color ranges for different values in my
matrix. For example:
If x > 5 , use orange gradient
if x < 1.5, use red gradient
.....
Right now I have the following:
orgPal<-brewer.pal(3,"Oranges")
bluPal<-brewer.pal(3,"Blues")
redPal<-brewer.pal(3,"Reds")
grad <- ifelse(randMat > 5,orgPal,ifelse(randMat<1.5,redPal,bluPal))
hmap <- heatmap(randMat,Rowv=NULL, Colv=NULL,dendrogram="none",col = grad,
scale="column&q...
2009 Jan 20
2
Stacked barplot with two stacked bars besides each other
...xt to each other, one for var1 and the other for
var2. I was thinking something like:
> barplot(list(as.matrix(var1),as.matrix(var2)))
would work, but it didn't.
Any suggestions you could make would be great.
Dan
--
**************************************************************
Daniel Brewer, Ph.D.
Institute of Cancer Research
Molecular Carcinogenesis
Email: daniel.brewer at icr.ac.uk
**************************************************************
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No....
2008 Jan 31
3
Log rank test power calculations
...have any ideas how I could do a power calculation for a log
rank test. I would like to know what the suggested sample sizes would
be to pick a difference when the control to active are in a ratio of 80%
to 20%.
Thanks
Dan
--
**************************************************************
Daniel Brewer, Ph.D.
Institute of Cancer Research
Email: daniel.brewer at icr.ac.uk
**************************************************************
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Register...
2009 Dec 02
1
Extract html tables to data.frames
...pe some html tables from a web page and convert them
to a data.frame so I can perform further analysis. Could anyone tell me
the best way to do this? Would it be more appropriate to use an
external tool first?
Thanks
Dan
--
**************************************************************
Daniel Brewer, Ph.D.
Institute of Cancer Research
Molecular Carcinogenesis
Email: daniel.brewer at icr.ac.uk
**************************************************************
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No....
2009 Apr 28
1
Mathematical label in a plot with a percent sign
...sion(x>=5). Whatever I do to
include the % sign as well doesn't seem to work.
xlab=bquote(x>=5.("%")) almost works but includes brackets.
Anyonw know how to solve this one
Dan
PS I am running R 2.9.0
--
**************************************************************
Daniel Brewer, Ph.D.
Institute of Cancer Research
Molecular Carcinogenesis
Email: daniel.brewer at icr.ac.uk
**************************************************************
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No....
2010 Nov 19
1
expand comma separated field vertically in data.frame
...e this:
a 1,2,3,4 b1
b 6,7 b3
And I would like to transform it to this:
a 1 b1
a 2 b1
a 3 b1
a 4 b1
b 6 b3
b 7 b3
I have been looking at ddply but can't seem to work it out. ANy help
would be gratefully received.
Dan
--
**************************************************************
Daniel Brewer, Ph.D.
Institute of Cancer Research
Molecular Carcinogenesis
Email: daniel.brewer at icr.ac.uk
**************************************************************
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No....
2009 Dec 23
2
COnfidence intervals for estimates of linear model
...heck that I am doing it correct.
Is it just:
Estimate + 1.95996*Std.Error to Estimate - 1.95996*Std.Error
or is there another approach that doesn't assume a normal distrbution?
Thanks. Apologies for my naiivity
Dan
--
**************************************************************
Daniel Brewer, Ph.D.
Institute of Cancer Research
Molecular Carcinogenesis
Email: daniel.brewer at icr.ac.uk
**************************************************************
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No....
2007 Sep 24
2
Calculate difference between dates in years
...umeric(sampleInfo$Date.of.DIAGNOSIS-sampleInfo$Date.of.birth)/365.25)
Is this the best approach? or is there an inbuilt function? I have
looked at difftime but that does not seem to allow output in years.
Many thanks
Dan
--
**************************************************************
Daniel Brewer, Ph.D.
Institute of Cancer Research
Email: daniel.brewer at icr.ac.uk
**************************************************************
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registere...
2009 Jun 24
1
order by decerasing 1st variable and increasing 2nd variable
...increasing in the second column.
Is this possible? I can not find anything in order that seems to
support this. I would have thought,
x[order(x$One,x$Two,decreasing=c(T,F)),]
would do it but it doesn't.
Thanks
Dan
--
**************************************************************
Daniel Brewer, Ph.D.
Institute of Cancer Research
Molecular Carcinogenesis
Email: daniel.brewer at icr.ac.uk
**************************************************************
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No....
2002 Mar 12
0
Heineken Face EU Fines for Curbing Rivalry
Heineken NV and Carlsberg A/S may be fined after the European Commission charged that they conspired to curb competition in the Dutch and Danish beer markets from 1993 to 1996.
The European Union's antitrust regulator said evidence collected in raids two years ago showed the two brewers broke EU law by agreeing not to sell ``intensively'' in each other's territory. The companies denied the allegations.
Competition Commissioner Mario Monti is cracking down on price fixing in industries from vitamins to papermaking. He took on Europe's beer industry last year with...
2008 Mar 26
1
Adding name labels to x-axis of matplot
...abels" parameter but I get:
Error in axis(side, at, as.graphicsAnnot(labels), tick, line, pos,
outer, :
'labels' is supplied and not 'at'
Any ideas? Is there are a more appropriate plot type?
--
**************************************************************
Daniel Brewer, Ph.D.
Institute of Cancer Research
Molecular Carcinogenesis
Email: daniel.brewer at icr.ac.uk
**************************************************************
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No....
2010 Dec 10
2
Remove 100 years from a date object
...n I would like them to be 1937.
I thought of trying to take off some time i.e.
as.Date(camCD$DoB,format="%d.%m.%y") - 100*365
But that doesn't seem to work out correctly. Any ideas how to do this?
Thanks
Dan
--
**************************************************************
Daniel Brewer, Ph.D.
Institute of Cancer Research
Molecular Carcinogenesis
Email: daniel.brewer at icr.ac.uk
**************************************************************
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No....
2009 May 08
2
display data ( text) on leveplot / Superpose panel
I am trying to display data ion top of colored rectangle on the same levelplot. While using superpose the shape and symbol for levelplot changes to small circle. I am unable to figure what exactly I am doing wrong... It may be straightforward solution... .I will appreciate help to fix this issue.
brewer.div<-colorRampPalette(c("pink","green","blue","yellow","red"), interpolate="linear")levelplot(ds, shrink=c(0.9,1), aspect=3/5, scales=list(x=list(rot=0)), cuts = 10, col.regions = brewer.div(20), xlab="",
ylab="&...