Re: [R] Modify pdf file with Illustrator.

2012-06-04 Thread Jinyan Huang
Thanks for the links! It is a very nice tutorial. On Mon, Jun 4, 2012 at 8:47 PM, Michael Friendly wrote: > On 6/3/2012 2:42 AM, Jinyan Huang wrote: >> >> Dear list, >> >> Some times I want to modify the pdf file which produced by R with >> illustrator. But wh

Re: [R] R 15.0 Warning message.

2012-06-03 Thread Jinyan Huang
At last, the administrator provide me this command to fix this problem. echo "setenv LC_ALL en_US.UTF8" >> ~/.cshrc.aliases On Sun, Jun 3, 2012 at 5:47 PM, peter dalgaard wrote: > > On Jun 3, 2012, at 11:36 , Prof Brian Ripley wrote: > >>> >>> ls -ld /usr/share/locale/en_US* >>> drwxr-xr-x 2 r

Re: [R] Modify pdf file with Illustrator.

2012-06-03 Thread Jinyan Huang
ry the grid.arrange() and arrangeGrob in the 'gridExtra' > package in addition to ggplot2. > > > > On Mon, Jun 4, 2012 at 1:08 AM, Uwe Ligges > wrote: >> >> >> >> On 03.06.2012 17:03, Jinyan Huang wrote: >>> >>> Thank you. >

Re: [R] Modify pdf file with Illustrator.

2012-06-03 Thread Jinyan Huang
Thank you. 1, I want to put some text and title. Then put several figures into one. On Sun, Jun 3, 2012 at 10:59 PM, Uwe Ligges wrote: > > > On 03.06.2012 08:42, Jinyan Huang wrote: >> >> Dear list, >> >> Some times I want to modify the pdf file which produ

Re: [R] R 15.0 Warning message.

2012-06-03 Thread Jinyan Huang
locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE=UTF-8 LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSA

Re: [R] R 15.0 Warning message.

2012-06-03 Thread Jinyan Huang
Yes. I think it is my environment variables problem. But I donot know how to fix. echo $LC_ALL echo $LANG en_US.UTF-8 On Sun, Jun 3, 2012 at 4:07 PM, Prof Brian Ripley wrote: > LANG __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/l

[R] Modify pdf file with Illustrator.

2012-06-02 Thread Jinyan Huang
Dear list, Some times I want to modify the pdf file which produced by R with illustrator. But when I use Illustrator open the pdf file, it often makes the pdf some little changed. Anyone have some suggestions? Is it better to use other file type, not pdf? Or when I produced the pdf, I should set s

[R] R 15.0 Warning message.

2012-06-02 Thread Jinyan Huang
Dear list, I have install R15.0 on Ubuntu system using the source code. It is install to my home directory. I have no root privilege. When I start R, I got this warning message: During startup - Warning message: Setting LC_CTYPE failed, using "C" How can I fix this? Thanks. __

Re: [R] substract 2 data.frames

2011-02-27 Thread Jinyan Huang
I think paste all column together, then using a %in% b. Maybe others have better solution. On Sun, Feb 27, 2011 at 9:29 PM, Nicolas Gutierrez wrote: > Hi! > > I have 2 data.frames: "fish" and "popn": > >>fish > >   xloc yloc id birth  size weight  energy gonad > 20   15   15 54   -60 107.9   63.0

Re: [R] A very basic line-plot question

2011-02-17 Thread Jinyan Huang
dat<-c(150,152,155,134,141) plot(dat,type="o",ylim=c(100,160),xlab="Names",ylab="Height") On Thu, Feb 17, 2011 at 7:45 PM, world peace wrote: > Hi All > > I have data like this > >              tom   randy mike dan doug > height       150   152     155  134 141 > > I am trying to create a line pl

Re: [R] Can i make an histogramm with bars on the Y-axis ?

2011-01-31 Thread Jinyan Huang
horiz=T ?barplot On Mon, Jan 31, 2011 at 10:03 AM, ibliss wrote: > > Hi, > > My question is in the subject. > > Here, a picture that's illustrating my problem : > > http://r.789695.n4.nabble.com/file/n3248321/graph.png > > This figure comes from an article published in Cancer Cell by K.E. Gascoi

Re: [R] Writing out data from a list

2011-01-13 Thread Jinyan Huang
a<- list(a=c(0.00,0.00),b=c(2,2,2),c=c(3,3,3)) t<-NULL m<-1 for( i in a) {t<-c(t,paste("Event",m),i);m<-m+1} __ 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/posti

Re: [R] How to bind models into a list of models?

2010-12-14 Thread Jinyan Huang
Try step() ? On Tue, Dec 14, 2010 at 10:05 PM, Mark Na wrote: > Hi R-helpers, > > I have a character object called dd that has 32 elements each of which > is a model formula contained within quotation marks. Here's what it > looks like: > >> dd >  [1] "lm(y ~ 1,data=Cement)"                     "

Re: [R] Selecting non-empty elements after strsplit of string

2010-12-14 Thread Jinyan Huang
unlist(strsplit(output," +")) On Tue, Dec 14, 2010 at 2:09 PM, Scott Chamberlain wrote: > Hello, > > I am attempting to manipulate strings in which there are differing amounts of > whitespace before and after each element taht I want to keep (any word, > letter, or number). However, after strs

Re: [R] Help in defining vectors

2010-12-12 Thread Jinyan Huang
try a<-c(1,2) On Sun, Dec 12, 2010 at 10:57 AM, skd wrote: > > I am completely new to R . > while defining a vector  i get these following messages > >  c<-a(1,2) > Error: could not find function "a" > > or > >  c=a(1,2) > Error: could not find function "a" > > Kindly advice, how to get rid of th

Re: [R] help requested

2010-12-10 Thread Jinyan Huang
awk '{arr[$1]=arr[$1] " " $2}END{for( i in arr){print i,arr[i]}}' edgelist.txt | sort -k1 On Fri, Dec 10, 2010 at 4:20 PM, profaar wrote: > 1 2 > 1 3 > 1 4 > 1 5 > 2 3 > 2 4 > 3 2 > 4 1 > 4 3 > 4  5 > 5 2 > 5 4 __ R-help@r-project.org mailing list ht

Re: [R] Adding numbers in Outputs

2010-12-10 Thread Jinyan Huang
X<-list(40,c(80,160),c(160,80,400)) Y<-list(10,c(10,30),c(5,18,20)) Z<-c(1,2,3) as.data.frame(do.call("rbind",X))->x as.data.frame(do.call("rbind",Y))->y x*y*Z->r r[upper.tri(r)] <- 0 rowSums(r) __ R-help@r-project.org mailing list https://stat.ethz.ch/m