Re: [R] Help

2019-08-11 Thread Rui Barradas
Hello, This seems to be the site you want, not CRAN. http://gecon.r-forge.r-project.org/ And please no HTML, post in plain text. Hope this helps, Rui Barradas Às 02:01 de 11/08/19, tanyi_cm2000--- via R-help escreveu: Hi,my name is; William, a graduate student in the Department of Econom

Re: [R] Help

2019-08-11 Thread David Winsemius
> On Aug 10, 2019, at 6:01 PM, tanyi_cm2000--- via R-help > wrote: > > Hi,my name is; William, a graduate student in the Department of > EconomicsState University of New York(SUNY),at Albany.I'm using R-3.6,1 and > Rstudio on Window, however, i've problems installing packageslike:gEcon,BMR

[R] Help

2019-08-11 Thread tanyi_cm2000--- via R-help
Hi,my name is; William, a graduate student in the Department of EconomicsState University of New York(SUNY),at Albany.I'm using R-3.6,1 and Rstudio on Window, however, i've problems installing packageslike:gEcon,BMR on R. I've used:install.packages("gEcon") and  install.packages(type=gEcon,"sour

Re: [R] ggplot2 fill problem in colour shading

2019-08-11 Thread David Winsemius
> On Aug 11, 2019, at 9:13 AM, Troels Ring wrote: > > Dear friends - I have 2 problems with ggplot2 > > Here is the code for illustration > > > > x <- seq(1,10,length=1) > > y <- x^2 > > fill <- rep(0,length(x)) > > fill[(5 > ddf <- data.frame(x,y,fill) > > ggplot(data=ddf,aes(x=x

Re: [R] ggplot2 fill problem in colour shading

2019-08-11 Thread Rui Barradas
Hello, You must put the NA in scale_fill_manual. Like this: ggplot(data = ddf, aes(x = x, y = y)) + geom_area(aes(fill = fill)) + geom_line() + scale_fill_manual(values = c(NA, "red")) Note also that 'fill' is a factor, were it numeric you would need fill = factor(fill). ddf2 <- data

[R] ggplot2 fill problem in colour shading

2019-08-11 Thread Troels Ring
Dear friends - I have 2 problems with ggplot2 Here is the code for illustration x <- seq(1,10,length=1) y <- x^2 fill <- rep(0,length(x)) fill[(5https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide comment

Re: [R] vectorizing the integrate function

2019-08-11 Thread Linus Chen
Dear ravi, In your example, the function "f" is linear to a, b, and c. Is this the general case in your task? If it is, you can save *lots* of computation taking advantage of the linearity. Lei On Sat, 10 Aug 2019 at 19:20, ravi via R-help wrote: > > Hi all,I am having some difficulties in v

[R] Question on extracting subsampled features from node in Random forest Package

2019-08-11 Thread Samir Rachid Zaim
Hi all, *Question:* *Is there a way to see what variables are subsampled in a node in a tree in a random forest?* ---

Re: [R] Using read.table for importing gz file

2019-08-11 Thread J H
Unsubscribe On Sat, 10 Aug 2019 at 20:30, Spencer Brackett < spbracket...@saintjosephhs.com> wrote: > Hello, > > I am trying to read the following Xena dataset into R for data analysis: > > https://tcga.xenahubs.net/download/TCGA.GBMLGG.sampleMap/HumanMethylation450.gz > > I tried to run the foll