Re: [R] facets work in qplot but facet_wrap produces an error in ggplot

2015-03-24 Thread Jeff Newmiller
You MUST put all data you plan to refer to into a data frame when using ggplot. There are a couple of ways you could do this... the easiest is to put a header line in the data file with column names. Or, you can assign a vector of new names to the names of the data frame. names( hetshoms ) <- c

Re: [R] ggplot2 Error : cannot allocate vector of size 1.9 Gb

2015-03-24 Thread Jeff Newmiller
Another thought... if you have a ".RData" file in your working directory, you might want to delete or rename it. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. #

Re: [R] reading in from xlsx files

2015-03-24 Thread Jim Lemon
Hi Bob, Most likely you didn't save the resulting Excel file before sourcing the R code. I would close Excel (which given the time elapsed since your message you probably have done) and open the XSLX file again. If the changes are there in Excel, they should show up when you run the R code (using t

Re: [R] ggplot2 Error : cannot allocate vector of size 1.9 Gb

2015-03-24 Thread Jeff Newmiller
Because no package loads 1.9GB of data when you load it into memory, so this has to be a bug. The first thing to do when the software is acting buggy is to update to current. Having done that, I think it is time to contact the maintainer (see ?maintainer). For future reference, your posting is

Re: [R] ggplot2 Error : cannot allocate vector of size 1.9 Gb

2015-03-24 Thread Jam One
> sessionInfo() R version 3.1.3 (2015-03-09) Platform: i386-w64-mingw32/i386 (32-bit) Running under: Windows 7 (build 7601) Service Pack 1 locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252   [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C  

[R] facets work in qplot but facet_wrap produces an error in ggplot

2015-03-24 Thread Loren
Hello all, I am having a perplexing problem trying to use facet_wrap in ggplot, with both my real dataset and a simplified dummy dataset. I am trying to plot heterozygosity across the genome for multiple individuals, with each chromosome shown separately. My dummy data: chr1123000 124000 2

Re: [R] make elements of a list into functions

2015-03-24 Thread Uwe Ligges
On 25.03.2015 00:38, Kruti Pandya wrote: Hi I have a list called g as follows and I want to make elements of g into functions so that I can evaluate them at randomly generated data point say c(0,0,0). For example, change g[[1]] (!x[2] & !x[3]) | (!x[2] & x[3]) | (x[2] & x[3]) to function(x)

[R] make elements of a list into functions

2015-03-24 Thread Kruti Pandya
Hi I have a list called g as follows and I want to make elements of g into functions so that I can evaluate them at randomly generated data point say c(0,0,0). For example, change g[[1]] (!x[2] & !x[3]) | (!x[2] & x[3]) | (x[2] & x[3]) to function(x) (!x[2] & !x[3]) | (!x[2] & x[3]) | (x[2] & x

Re: [R] ggplot2 Error : cannot allocate vector of size 1.9 Gb

2015-03-24 Thread Jeff Newmiller
Upgrade your copy of R to the latest. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: O

Re: [R] the making of _R_ eBooks

2015-03-24 Thread John Maindonald
Thanks for that. Useful to have that question asked and to get that information. John Maindonald email: john.maindon...@anu.edu.au On 25/03/2015, at 0:00, r-help-requ...@r-project.org wrote: From: John McKow

[R] RSperl Problem

2015-03-24 Thread Panayiotis Georgiades
Hi there, I have Perl version 5.14.2 and R installed on Ubuntu 12.04 and had a problem while trying to install RSPerl. I followed the instructions on the guide in omegahat.org, and ran the commandR CMD INSTALL --configure-args='--with-in-perl' RSPerl and the following error occured:* installing

Re: [R] Ayuda con un árbol de regresión

2015-03-24 Thread Michael Dewey
Miguel, si prefieres escribir en espanol https://stat.ethz.ch/mailman/listinfo/r-help-es (This is the address of the Spanish language mailing list) On 23/03/2015 20:13, Miguel angel Lopez Martinez wrote: ARBOL<-tree(PRECIO~CILINDRAJE_DEL_MOTOR+MODELO,data=CARROST) ARBOL plot(ARBOL) text(ARBOL,

Re: [R] reading in from xlsx files

2015-03-24 Thread John McKown
On Tue, Mar 24, 2015 at 7:40 AM, Robert Lyons wrote: > I'm sorry if this is well below the level of this forum. > Using R Console v3.1.3 32-bit > Both of our R Programming sources left the company and I'm in need of some > very basic help. > The code is reading in column and row information from

Re: [R] Light response curve using non rectangular hypebola

2015-03-24 Thread Sarah Goslee
Hi, Is this homework? What have you tried? What worked, and what didn't? What do your data look like? You'll get much more help on this list if you read the posting guide and provide reproducible examples, plus some evidence that you've worked on the problem yourself. Without a reproducible ex

Re: [R] reading in from xlsx files

2015-03-24 Thread Sarah Goslee
Did you start in a clean R session? What is your code? We can't telepathically diagnose code that's not sent to the list. Why not just change the data frames in R? Please read the posting guide linked at the bottom of this message, and provide enough information that we can reasonably help you.

[R] reading in from xlsx files

2015-03-24 Thread Robert Lyons
I'm sorry if this is well below the level of this forum. Using R Console v3.1.3 32-bit Both of our R Programming sources left the company and I'm in need of some very basic help. The code is reading in column and row information from two xlsx files. I made what I thought were some basic changes to

[R] Light response curve using non rectangular hypebola

2015-03-24 Thread Sayedur Rahman
Hi I am a student trying to get Amax, thea,phi, and Rd from my light response data. I have 3 genotypes with 4 reps under 2 CO2 level. How do I solve the equation using R. Any one can help me with writing script and solve thE equation for non rectangular hyperbola Thank you Sayedur [[alte

[R] Ayuda con un árbol de regresión

2015-03-24 Thread Miguel angel Lopez Martinez
ARBOL<-tree(PRECIO~CILINDRAJE_DEL_MOTOR+MODELO,data=CARROST) ARBOL plot(ARBOL) text(ARBOL,cex=0.9) este es el código que utilizamos las variables cilindraje y modelo son categóricas transformadas por que si utilizamos las varibales como factor no las reconoce [[alternative HTML version d

[R] ggplot2 Error : cannot allocate vector of size 1.9 Gb

2015-03-24 Thread Jam One
Dear All, I have a showstopper here. I cannot run a library(UsingR) because I cannot load the package 'ggplot2'. > sessionInfo() R version 3.1.0 (2014-04-10) Platform: i386-w64-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 [3] LC_

Re: [R] Superimposing 2 curves on the same graph with par(new=TRUE)

2015-03-24 Thread Clint Bowman
Because the range is so different between the two series, I'd suggest using log="y", ylim=c(500,2) Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu Department of Ecology VOICE: (360) 407-6

Re: [R] missing in neural network

2015-03-24 Thread Charles Determan Jr
I should have actually created some test code for you. Here is an example: library(neuralnet) data(infert) # create your formula fm <- as.formula(paste("case ~ ", paste(colnames(infert)[c(3,4,6)], collapse="+"))) # call neuralnet net.infert <- neuralnet(fm, infert, err.f

[R] Fwd: missing in neural network

2015-03-24 Thread Soheila Khodakarim
Dear Charles, Thanks for your guide. I run this code: library("neuralnet") resp<-c(1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,1,0,1) mydata <- cbind(data, resp) out1 <- neuralnet(resp~mydata[,1:3110],data=mydata, hidden = 4, lifesign = "minimal", linear.output = FALSE, threshold = 0.1) I saw this error

Re: [R] Cluster analysis using term frequencies

2015-03-24 Thread Christian Hennig
Dear Sun Shine, dtes <- dist(tes.df, method = 'euclidean') dtesFreq <- hclust(dtes, method = 'ward.D') plot(dtesFreq, labels = names(tes.df)) However, I get an error message when trying to plot this: "Error in graphics:::plotHclust(n1, merge, height, order(x$order), hang, : invalid dendrogr

Re: [R] missing in neural network

2015-03-24 Thread Charles Determan Jr
Hi Soheila, You are using the formula argument incorrectly. The neuralnet function has a separate argument for data aptly names 'data'. You can review the arguments by looking at the documentation with ?neuralnet. As I cannot reproduce your data the following is not tested but I think should w

[R] Cluster analysis using term frequencies

2015-03-24 Thread Sun Shine
Hi list I am using the 'tm' package to review meeting notes at a school to identify terms frequently associated with 'learning', 'sports', and 'extra-mural' activities, and then to sort any terms according to these three headers in a way that could be supported statistically (as opposed to, s

[R] missing in neural network

2015-03-24 Thread Soheila Khodakarim
Dear All, I want to run "neural network" on my dataset. ## resp<-c(1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,1,0,1) dim(data) #20*3110 out <- neuralnet(y ~ data, hidden = 4, lifesign = "minimal", linear.output = FALSE, threshold = 0.1,na.rm = TRUE)

Re: [R] the making of _R_ eBooks

2015-03-24 Thread Dr. Wolfgang Lindner
From: "Amos B. Elberg" | If you take a look at rmarkdown and the rticles package, you'll find a template for | a "tufte ebook" in the style of Edward Tufte. From: "Sven E. Templer" |> Q3: any other recommendations? | You might be interested in the very easy to use R markdown, see: | http://rmar