[R] Help on tidy_source
Dear all, Good time. Could anybody can help me with my below code on Windows 7 and R 3.1.0 when I run this code: tidy_source ( "ugly script.R", file = "beautiful script.R" ) I encounter this error message: Error in parse(text = x, keep.source = TRUE) : :11:14: unexpected '==' 10: 11: Crtl+Alt+N ^ Bunch of thanks in advance Best, Amir __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] How to draw Bubble chart with mini pie charts as bubbles in R
Dear all, Good day! Could anybody help me how to draw a bubble chart with mini pie charts as bubbles in R ? Introducing any experiences, books, booklet or source code will appreciated. Bunch of thanks. Best, Amir __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] How to draw Bubble chart with mini pie charts as bubbles in R
Hi Jim, Very great help. Bunch of thanks. Yours, Amir On Sun, 6/15/14, Jim Lemon wrote: Subject: Re: [R] How to draw Bubble chart with mini pie charts as bubbles in R To: r-help@r-project.org Date: Sunday, June 15, 2014, 5:10 AM On Sat, 14 Jun 2014 01:03:21 PM Agony wrote: > Dear all, > Good day! > > Could anybody help me how to draw a bubble chart with mini pie charts as > bubbles in R ? Introducing any experiences, books, booklet or source code > will appreciated. > Hi Amir, The floating.pie function (plotrix) might do what you want. For example: # first create a simple function to do the chart pie_bubbles<-function(xpos,ypos,radii,sectors, sector_col=NULL,main="",xlab="",ylab="") { xlim<-c(min(xpos-radii),max(xpos+radii)) ylim<-c(min(ypos-radii),max(ypos+radii)) nbubbles<-length(xpos) if(is.null(sector_col)) { sector_col<-list() for(scol in 1:nbubbles) sector_col[[scol]]<-rainbow(length(sectors[[scol]])) } plot(0,xlim=xlim,ylim=ylim,type="n", main=main,xlab=xlab,ylab=ylab) for(bubble in 1:nbubbles) floating.pie(xpos=xpos[bubble],ypos=ypos[bubble], x=sectors[[bubble]],radius=radii[bubble], col=sector_col[[bubble]]) } # set the x positions xpos<-c(2,4,6,8,10) # and the y positions ypos<-c(4,8,6,10,2) # the radii are the "bubble" radii radii<-c(1,0.5,1.2,0.7,1.3) # these are the sector extents of the pies sectors<-list(1:4,c(5,3,8,6,2),c(3,2,1),c(3,7,5,8),c(2.5,3.7)) # get the plotrix package library(plotrix) pie_bubbles(xpos,ypos,radii,sectors,main="Pie bubbles") The above is pretty basic, but it should get you started. Jim __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] A question in rms package
Dear all, Happy new year all of You and with best wishes coming to you in this new year. I have a problem in running a command in rms package. Does any can help me with my problem. I wanna use predab.resample command to compute bias-corrected estimates of a vector of indexes of Predictive accuracy. But I'm confused about choosing fit and measure arguments. Would you please help me? I ran this command: model1=lrm(Cancerous~AGE+PV+PSA,na.action=na.delete,x=TRUE, y=TRUE, data=mdat1) now when I want to use this one: predab.resample<-predab.resample(model, method=c("boot","crossvalidation",".632","randomization"), bw=TRUE, B=50, pr=FALSE, rule="aic", type="residual", sls=.05, aics=0, tol=1e-12, non.slopes.in.x=TRUE) I received this error: Error in predab.resample(model, method = c("boot", "crossvalidation", : argument "fit" is missing, with no default I will be very happy to receive your comments. Many thanks Amir [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Installing WinBUGS & OpenBUGS on OS X 10.8.5
Dear all, Could any body help me how to install OpenBUGS or WinBUGS on my operating system; OS X 10.8.5? Actually, If there are too many way what is the best way? I will be very grateful to receive your guidance and comments. The installation manual could help me in the best way. Bunch of thanks in advance. Best, Amir [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Installing WinBUGS & OpenBUGS on OS X 10.8.5
Many thanks indeed. But I foud a way. It is worth of trying http://www.davidbaumgold.com/tutorials/wine-mac/ Best, Amir On Monday, February 24, 2014 10:32 AM, "jlu...@ria.buffalo.edu" wrote: 1. To install and run WBugs or Obugs on OSX you must use Parallels or other Windows emulator. 2. Another possibility is to install JAGS (http://mcmc-jags.sourceforge.net/) via MacPorts (http://www.macports.org/) and use R2JAGS. Agony Sent by: r-help-boun...@r-project.org 02/24/2014 09:18 AM Please respond to Agony To "r-help@r-project.org" , "r-help@r-project.org" , cc Subject [R] Installing WinBUGS & OpenBUGS on OS X 10.8.5 Dear all, Could any body help me how to install OpenBUGS or WinBUGS on my operating system; OS X 10.8.5? Actually, If there are too many way what is the best way? I will be very grateful to receive your guidance and comments. The installation manual could help me in the best way. Bunch of thanks in advance. Best, Amir [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] (no subject)
Dear all, I have a problem reading xlsx files in R. Could anybody help me how to resolve the problem? install.packages("xlsx", dependencies=TRUE) library(xlsx) library(rJava) data <- read.xlsx("3.1.xlsx", sheetIndex = 3.1) data <- read.xlsx("3.1.xlsx", sheetName= "a",as.data.frame=TRUE, header=TRUE) data <- read.xlsx("3.1.xlsx", 1) the error message is : Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :  java.lang.OutOfMemoryError: GC overhead limit exceeded I also have problem in reading Rmpi library. I installed it correctly however when I read it by library(Rmpi) I received an error message: Error : .onLoad failed in loadNamespace() for 'Rmpi', details:  call: inDL(x, as.logical(local), as.logical(now), ...)  error: unable to load shared object 'C:/Users/Amir/Documents/R/win-library/3.0/Rmpi/libs/x64/Rmpi.dll':  LoadLibrary failure: The specified module could not be found. Error: package or namespace load failed for âRmpiâ My many many thanks your help in advance. Best, Amir [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] How can I use muliple cores of CPU in Windows or OS X?
Dear all, I have about 50 pages of R codes and ran it in both OS X and Windows. It takes at least haft a day to have the results. The running time is not very different in both Systems. I found that R does not use all cores of CPU by default. Can anybody help me to use all cores of CPU in my programming from the beginning or through programming in both OS X and Windows? Many thanks your attention and help in advance. Best, Amir __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] decode and annotate
Dear all, Could anyone help me annotate and decode the below codes? Many thanks in advance. Best, coverage.col <- rep(0, length(mean)) coverage.col[coverage=="a"] <- rainbow(50)[30] coverage.col[coverage=="b"] <- rainbow(50)[15] coverage.col[coverage=="c"] <- rainbow(50)[8] coverage.col[coverage=="d"] <- rainbow(50)[46] what does it mean by (50)[30] et al.? what will be happend after using these codes? Based on what they could be selected? and also: if(variable=="a" & fOnly==0){ NF <- length(unique(uid[fasting==1])) NnF <- length(unique(uid[fasting==0])) } [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.