Re: [R] copy/paste of large amount of code to terminal leads to scrambled/missing characters

2018-02-04 Thread Berend Hasselman
Why not use the R bundle for TextMate and run your script directly in TextMate? You'll get nice output. And if you want to run R directly and get the output in a .Rout file you can add a command to the R bundle, create a small script that runs R in batch. Create a new command in the R bundle, g

[R] help with the plot overlay

2018-02-04 Thread Fix Ace via R-help
Dear R Community, I recently read an article and found a plot as attached. It has scatterplot, barplot, and error bar. Could anyone help me to figure out what package I can use in R to generate such plot? Thank you very much for any inputs! Kind regards, Ace __

[R] Unexpected behaviour from read.table

2018-02-04 Thread Michael
I’ve been struggling with seemingly ‘corrupt’ data.frames for a few days, and believe I’ve narrowed the problem down to some odd behaviour from read.table I receive a tab delimited file from an external provider where strings are encoded as =“content”. Not sure why, perhaps as most users open it

Re: [R] find unique and summerize

2018-02-04 Thread Val
Thank you so much Rui! On Sun, Feb 4, 2018 at 12:20 AM, Rui Barradas wrote: > Hello, > > Please always cc the list. > > As for the question, I believe the following does it. > > a <- strsplit(mydata$ID, "[[:alpha:]]+") > b <- strsplit(mydata$ID, "[[:digit:]]+") > > a <- sapply(a, `[`, 1) > c <-

Re: [R] help with the plot overlay

2018-02-04 Thread Jim Lemon
Hi Ace, You can do it with plotrix: library(plotrix) barpos<-barp(c(1,5,38),width=0.5,col=c("white","lightgray","darkgray"),ylim=c(0,70)) ehplot(c(1,0.8,0.9,0.8,1.1,1,4,3,5,14,3,2,32,27,33,30,50,61), c(1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3),median=FALSE,add=TRUE,cex=2, pch=21,bg="white") dispersio