Re: [R] Add encoded special characters (greek characters) as text to plot

2014-12-20 Thread heyi xiao via R-help
Thank you all for the input. That helps, although I haven’t get the exact solution.. On Thu, 12/18/14, Chel Hee Lee wrote: Subject: Re: [R] Add encoded special characters (greek characters) as text to plot To: "Jeff Newmiller" ,

Re: [R] Add encoded special characters (greek characters) as text to plot

2014-12-18 Thread heyi xiao via R-help
anybody has any hint on this? Subject: Add encoded special characters (greek characters) as text to plot To: r-help@r-project.org Date: Wednesday, December 17, 2014, 9:25 PM Dear all, I read my a character matrix from a text file. Some of them

[R] Add encoded special characters (greek characters) as text to plot

2014-12-17 Thread heyi xiao via R-help
Dear all, I read my a character matrix from a text file. Some of them have greek characters. To reserve the special characters, I used stringsAsFactors=F using read.table. I notice that I can’t print these character string using print(), but I can use cat(): > print("LC\246\302") [1] "LC\246\302

Re: [R] modify functions in imported namespace in a new package

2013-01-03 Thread heyi xiao
Any thoughts or suggestions? This does not seem be a trivial issue. Thanks! - Original Message - From: heyi xiao To: "r-help@r-project.org" Cc: Sent: Wednesday, January 2, 2013 3:22 PM Subject: modify functions in imported namespace in a new package Hello all, I am devel

[R] modify functions in imported namespace in a new package

2013-01-02 Thread heyi xiao
Hello all, I am developing an R package. My package uses several classes and functions from another package (package A). Normally, I could just specify package A as imports or depends in my DESCPRITION and NAMESPACE files. One function I use is F, which calls a bunch of other functions including G

Re: [R] Nonparametric bivariate distribution estimation and sampling

2012-03-25 Thread heyi xiao
ariate distribution estimation and sampling > To: "heyi xiao" > Cc: "Sarah Goslee" , r-help@r-project.org > Date: Friday, March 23, 2012, 5:29 PM > > On Mar 23, 2012, at 3:55 PM, heyi xiao wrote: > > > David, > > Thanks a lot for the specific su

Re: [R] Nonparametric bivariate distribution estimation and sampling

2012-03-23 Thread heyi xiao
not have a big sample size. The scatter plot of the sampled data doesn’t look good this way. Heyi --- On Fri, 3/23/12, David Winsemius wrote: > From: David Winsemius > Subject: Re: [R] Nonparametric bivariate distribution estimation and sampling > To: "heyi xiao" >

Re: [R] Nonparametric bivariate distribution estimation and sampling

2012-03-23 Thread heyi xiao
not clear enough. If you have any particular suggestions/comments, you are more than welcome. Thanks! Heyi --- On Fri, 3/23/12, Sarah Goslee wrote: > From: Sarah Goslee > Subject: Re: [R] Nonparametric bivariate distribution estimation and sampling > To: "heyi xiao" > Cc

[R] Nonparametric bivariate distribution estimation and sampling

2012-03-23 Thread heyi xiao
Dear all, I have a bivariate dataset from a preliminary study. I want to do two things: (1) estimate the probability density of this bivariate distribution using some nonparametric method (kernel, spline etc); (2) sample a big dataset from this bivariate distribution for a simulation study. Is t

[R] complete list of Sweave tags (control sequences)

2010-08-29 Thread heyi xiao
Hello all, Is there a complete list of Sweave tags (control sequences) and their usage? For instance, I know a few blow. But I don’t really know how to use them. It seems to me that there is nowhere to find further information. I would really appreciate any input. Thanks! Heyi   The fe

Re: [R] break the long R code lines automatically

2010-08-24 Thread heyi xiao
asts) xlist[[i]] <- factor(x[, ncontrasts - i + 1], levels = c(0, 1))             counts <- as.vector(table(xlist))             structure(cbind(outcomes, Counts = counts), class = "VennCounts")       }   --- On Tue, 8/24/10, Yihui Xie wrote

[R] break the long R code lines automatically

2010-08-24 Thread heyi xiao
Dear all, I have written some R source program with many thousands of lines. I didn’t insert line breaks automatically or manually for the long lines. But now I would like to edit the source code in Emacs/ESS to make it more formal as a package. One of the major problems here is how to break

Re: [R] Install RCurl in Linux

2009-06-05 Thread heyi xiao
] Install RCurl in Linux To: "heyi xiao" Cc: r-help@r-project.org, dun...@wald.ucdavis.edu Date: Friday, June 5, 2009, 1:50 AM It seems you need a later curl -- 7.15 is rather old (and I think incomplete as a version number) and 7.19.5 is current. It is helpful to tell us what

[R] Install RCurl in Linux

2009-06-04 Thread heyi xiao
Hello all, I had both curl and curl-devel (both 7.15) installed on my x86_64/CentOS machine. However, I still got problem when I do R CMD INSTALL RCurl   Error message below, since library and/or include path is missing. I tried R CMD INSTALL RCurl --configure-args='--libdir=/usr/lib6

Re: [R] Bug with the col option in plot function

2009-03-21 Thread heyi xiao
US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] splines stats graphics grDevices utils datasets methods base other attached packages: [1] termstrc_1.1Design_2.1-2Hmisc_3.5-2 survival_2.34-1 loaded via a namespace (and not attached): [1] cluster_1.11.12

[R] Bug with the col option in plot function

2009-03-20 Thread heyi xiao
I lose control on colors when I plot points with pch=1 or 16 (empty or solid circle) or any letter, say "A". For example:   x=runif(5) y=runif(5) pdf("plot.pdf") plot(x, y, type='p', pch=1, col = 1:5) #just black points plot(x, y, type='p', pch=0, col = 1:5) #points with different colors

[R] Bug with the col option in plot function

2009-03-20 Thread heyi xiao
I lose control on colors when I plot points with pch=1 or 16 (empty or solid circle) or any letter, say "A". For example:   x=runif(5) y=runif(5) pdf("plot.pdf") plot(x, y, type='p', pch=1, col = 1:5) #just black points plot(x, y, type='p', pch=0, col = 1:5) #points with different colors